feat(component/index.d.ts): 添加公共组件的TypeScript类型描述文件

This commit is contained in:
郝先瑞
2022-03-13 15:49:30 +08:00
parent eb66f6ec98
commit df4950dee3

21
src/types/component/index.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[]
}