feat(component/index.d.ts): 添加公共组件的TypeScript类型描述文件
This commit is contained in:
21
src/types/component/index.d.ts
vendored
Normal file
21
src/types/component/index.d.ts
vendored
Normal file
@@ -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