fix: fix the default value of props

This commit is contained in:
Vben
2021-04-25 20:49:00 +08:00
parent 6a8820597f
commit 8b2e0f665f
19 changed files with 87 additions and 71 deletions

View File

@@ -156,7 +156,7 @@
&:hover {
background-color: @header-light-bg-hover-color;
}
.@{prefix-cls}__name {
color: @text-color-base;
}

View File

@@ -23,7 +23,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
title: {
type: String,

View File

@@ -25,7 +25,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
disabled: {
type: Boolean,

View File

@@ -25,7 +25,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
disabled: {
type: Boolean,

View File

@@ -35,7 +35,6 @@
},
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
def: {
type: String,

View File

@@ -35,7 +35,7 @@
},
handler: {
type: Function as PropType<Fn>,
default: () => {},
default: () => ({}),
},
def: {
type: String,