From d3698a8a0f1d12dd72906de6f02f2c6cd5f6b684 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sat, 11 Mar 2023 21:51:13 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: c948921fb994a12b16b210265181c89571d0a296 --- src/types/global.d.ts | 48 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 63d85cc3..ad7b72b9 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -1,23 +1,55 @@ declare global { + /** + * 分页查询参数 + */ interface PageQuery { pageNum: number; pageSize: number; } + /** + * 分页响应对象 + */ interface PageResult { + /** + * 数据列表 + */ list: T; + /** + * 数据总数 + */ total: number; } - type DialogType = { - title?: string; - visible: boolean; - }; - type OptionType = { - value: string; + /** + * 弹窗属性 + */ + interface DialogOption { + /** + * 弹窗标题 + */ + title?: string; + /** + * 是否显示 + */ + visible: boolean; + } + /** + * 组件数据源 + */ + interface OptionType { + /** + * 值 + */ + value: number; + /** + * 文本 + */ label: string; - checked?: boolean; + /** + * 子列表 + */ children?: OptionType[]; - }; + } } export {};