xachary
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
0 deletions
-
src/components/Form/src/components/FormItem.vue
|
|
|
@ -67,6 +67,12 @@ |
|
|
|
formProps: Ref<FormProps>; |
|
|
|
}; |
|
|
|
|
|
|
|
// 组件 CropperAvatar 的 size 属性类型为 number |
|
|
|
// 此处补充一个兼容 |
|
|
|
if (schema.value.component === 'CropperAvatar' && typeof formProps.value.size === 'string') { |
|
|
|
formProps.value.size = undefined; |
|
|
|
} |
|
|
|
|
|
|
|
const itemLabelWidthProp = useItemLabelWidth(schema, formProps); |
|
|
|
|
|
|
|
const getValues = computed(() => { |
|
|
|
|