fix(CropperAvatar): wrong type about the prop size (#3635)

This commit is contained in:
xachary 2024-03-02 10:02:18 +08:00 committed by GitHub
parent ab55cbf99b
commit aef90aa2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,12 @@
formProps: Ref<FormProps>; 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 itemLabelWidthProp = useItemLabelWidth(schema, formProps);
const getValues = computed(() => { const getValues = computed(() => {