fix(form): add default value of label-width (#2492)

fix #2490
This commit is contained in:
kooriookami
2021-07-10 21:33:14 +08:00
committed by GitHub
parent 7dc55a7576
commit 78ef773b36
2 changed files with 8 additions and 2 deletions

View File

@@ -63,7 +63,10 @@ export default defineComponent({
},
props: {
label: String,
labelWidth: [String, Number],
labelWidth: {
type: [String, Number],
default: '',
},
prop: String,
required: {
type: Boolean,

View File

@@ -67,7 +67,10 @@ export default defineComponent({
model: Object,
rules: Object as PropType<FormRulesMap>,
labelPosition: String,
labelWidth: [String, Number],
labelWidth: {
type: [String, Number],
default: '',
},
labelSuffix: {
type: String,
default: '',