refactor: TypeScript类型描述文件结构优化

This commit is contained in:
郝先瑞
2022-03-14 23:46:29 +08:00
parent e41027effd
commit faded7b27c
2 changed files with 0 additions and 6 deletions

21
src/types/common.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
/**
* 组件类型声明
*/
/**
* 弹窗属性类型声明
*/
export interface Dialog {
title: string,
visible: boolean
}
/**
* 通用组件选择项类型声明
*/
export interface Option {
value: string,
label: string
children?: Option[]
}