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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: '',