feat(component/index.d.ts): 添加公共组件的TypeScript类型描述文件
This commit is contained in:
1 parent
eb66f6ec98
commit
df4950dee3
1 file changed
+21
Vendored
+21
@@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
* 组件类型声明
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 弹窗属性类型声明
|
||||||
|
*/
|
||||||
|
export interface Dialog {
|
||||||
|
title: string,
|
||||||
|
visible: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通用组件选择项类型声明
|
||||||
|
*/
|
||||||
|
export interface Option {
|
||||||
|
value: string,
|
||||||
|
label: string
|
||||||
|
children?: Option[]
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user