From 5b566c5fab5198958a7c0971e16e0fa6102ae5e3 Mon Sep 17 00:00:00 2001
From: dingyongliang <dingyongliang@easycorp.ltd>
Date: Mon, 4 Nov 2024 09:48:06 +0800
Subject: [PATCH] * file-selector: fix exceededSizeTip.

---
 lib/file-selector/src/components/file-selector.tsx | 1 +
 lib/file-selector/src/i18n/index.ts                | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/file-selector/src/components/file-selector.tsx b/lib/file-selector/src/components/file-selector.tsx
index d4222f20b6..0da3e47fe3 100644
--- a/lib/file-selector/src/components/file-selector.tsx
+++ b/lib/file-selector/src/components/file-selector.tsx
@@ -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;
diff --git a/lib/file-selector/src/i18n/index.ts b/lib/file-selector/src/i18n/index.ts
index c72d7f5618..737ba37d04 100644
--- a/lib/file-selector/src/i18n/index.ts
+++ b/lib/file-selector/src/i18n/index.ts
@@ -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} 的限制。',
     },