Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-04-24 08:16:49 +00:00
commit 6b3d0e1f6b
2 changed files with 3 additions and 2 deletions

View File

@ -822,7 +822,7 @@
"File size exceeds the limit": "文件大小超过限制",
"File type is not allowed": "文件类型不允许",
"Uploading": "上传中",
"Incomplete uploading files need to be resolved": "未完成上传的文件需要处理",
"Some files are not uploaded correctly, please check.": "部分文件未上传成功,请检查。",
"Default title for each record": "用作数据的默认标题",
"If collection inherits, choose inherited collections as templates": "当前表有继承关系时,可选择继承链路上的表作为模板来源",
"Select an existing piece of data as the initialization data for the form": "选择一条已有的数据作为表单的初始化数据",

View File

@ -393,10 +393,11 @@ export function Uploader({ rules, ...props }: UploadProps) {
useEffect(() => {
if (pendingList.length) {
const errorFiles = pendingList.filter((item) => item.status === 'error');
field.setFeedback({
type: 'error',
code: 'ValidateError',
messages: [t('Incomplete uploading files need to be resolved')],
messages: [errorFiles.length ? t('Some files are not uploaded correctly, please check.') : ' '],
});
} else {
field.setFeedback({});