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 {};