From df4950dee35bbfdacbc0c1aa40281ca9349ebefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sun, 13 Mar 2022 15:49:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(component/index.d.ts):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=85=AC=E5=85=B1=E7=BB=84=E4=BB=B6=E7=9A=84TypeScrip?= =?UTF-8?q?t=E7=B1=BB=E5=9E=8B=E6=8F=8F=E8=BF=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/component/index.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/types/component/index.d.ts 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[] +} +