diff --git a/packages/form/src/form-item.vue b/packages/form/src/form-item.vue index 87bdce504e..24f437063a 100644 --- a/packages/form/src/form-item.vue +++ b/packages/form/src/form-item.vue @@ -63,7 +63,10 @@ export default defineComponent({ }, props: { label: String, - labelWidth: [String, Number], + labelWidth: { + type: [String, Number], + default: '', + }, prop: String, required: { type: Boolean, diff --git a/packages/form/src/form.vue b/packages/form/src/form.vue index 46bfdffd9f..6f888e401d 100644 --- a/packages/form/src/form.vue +++ b/packages/form/src/form.vue @@ -67,7 +67,10 @@ export default defineComponent({ model: Object, rules: Object as PropType, labelPosition: String, - labelWidth: [String, Number], + labelWidth: { + type: [String, Number], + default: '', + }, labelSuffix: { type: String, default: '',