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 <huangteng02@meituan.com>
This commit is contained in:
波比小金刚
2021-05-27 16:39:56 +08:00
committed by GitHub
parent eeedac6cf7
commit a6b1483aab

View File

@@ -40,7 +40,7 @@ export default defineComponent({
props: {
closable: Boolean,
type: {
type: String,
type: String as PropType<'success' | 'info' | 'warning' | 'danger' | ''>,
default: '',
},
hit: Boolean,