From f16add313db656b085422f74b289ebab5f9aa9d9 Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 25 Apr 2024 18:27:02 +0800 Subject: [PATCH] fix(plugin-fm): fix confusing size limit hint (#4153) --- .../core/client/src/schema-component/antd/upload/Upload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/upload/Upload.tsx b/packages/core/client/src/schema-component/antd/upload/Upload.tsx index 7da9d65d16..671b9e4bbe 100644 --- a/packages/core/client/src/schema-component/antd/upload/Upload.tsx +++ b/packages/core/client/src/schema-component/antd/upload/Upload.tsx @@ -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'); // 新版 UISchema(1.0 之后)中已经废弃了 useProps,这里之所以继续保留是为了兼容旧版的 UISchema const { title = defaultTitle, subTitle = defaultSubTitle, ...extraProps } = useProps(props);