mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -40,7 +40,7 @@ export default defineComponent({
|
||||
props: {
|
||||
closable: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
type: String as PropType<'success' | 'info' | 'warning' | 'danger' | ''>,
|
||||
default: '',
|
||||
},
|
||||
hit: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user