diff --git a/src/types/component/index.d.ts b/src/types/component/index.d.ts new file mode 100644 index 00000000..1aeff93f --- /dev/null +++ b/src/types/component/index.d.ts @@ -0,0 +1,21 @@ +/** + * 组件类型声明 + */ + +/** + * 弹窗属性类型声明 + */ +export interface Dialog { + title: string, + visible: boolean +} + +/** + * 通用组件选择项类型声明 + */ +export interface Option { + value: string, + label: string + children?: Option[] +} +