fix(plugin-fm): fix confusing size limit hint (#4153)

This commit is contained in:
Junyi 2024-04-25 18:27:02 +08:00 committed by GitHub
parent 5da0d4e75b
commit f16add313d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,7 @@ Upload.DraggerV2 = withDynamicSchemaProps(
(props: DraggerV2Props) => {
const { t } = useTranslation();
const defaultTitle = t('Click or drag file to this area to upload');
const defaultSubTitle = t('Support for a single or bulk upload, file size should not exceed') + ` 10MB`;
const defaultSubTitle = t('Support for a single or bulk upload');
// 新版 UISchema1.0 之后)中已经废弃了 useProps这里之所以继续保留是为了兼容旧版的 UISchema
const { title = defaultTitle, subTitle = defaultSubTitle, ...extraProps } = useProps(props);