Skip to content

Commit

Permalink
* file-selector: fix exceededSizeTip.
Browse files Browse the repository at this point in the history
  • Loading branch information
YonLJ committed Nov 4, 2024
1 parent ce35fd2 commit 5b566c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/file-selector/src/components/file-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export class FileSelector<P extends FileSelectorProps = FileSelectorProps, S ext
await this._showAlert(exceededSizeTip, {
name: fileInfo.name,
size: formatBytes(fileInfo.size, 1),
maxFileSize,
});
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion lib/file-selector/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
removeFile: '移除文件',
renameFile: '重命名',
duplicatedTip: '文件 “{name}”({size}) 已存在。',
exceededSizeTip: '文件 “{name}”({size}) 超过了 {maxSize} 的限制。',
exceededSizeTip: '文件 “{name}”({size}) 超过了 {maxFileSize} 的限制。',
exceededTotalSizeTip: '文件 “{name}”({size}) 超过了总大小 {totalFileSize} 的限制。',
exceededCountTip: '文件 “{name}”({size}) 超过了数量 {maxFileCount} 的限制。',
},
Expand Down

0 comments on commit 5b566c5

Please sign in to comment.