From a6b1483aabd152a09ca82e8a8ef0785b7a48e8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=A2=E6=AF=94=E5=B0=8F=E9=87=91=E5=88=9A?= <2890636389@qq.com> Date: Thu, 27 May 2021 16:39:56 +0800 Subject: [PATCH] fix: add specific type declaration (#1939) * fix: add specific type declaration * fix: add an empty string tyoe * feat: add an empty string defination Co-authored-by: huangteng02 --- packages/tag/src/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tag/src/index.vue b/packages/tag/src/index.vue index b546466691..ab79714408 100644 --- a/packages/tag/src/index.vue +++ b/packages/tag/src/index.vue @@ -40,7 +40,7 @@ export default defineComponent({ props: { closable: Boolean, type: { - type: String, + type: String as PropType<'success' | 'info' | 'warning' | 'danger' | ''>, default: '', }, hit: Boolean,