From e49655ff32d3672481510bd9a4dd79f0c488d697 Mon Sep 17 00:00:00 2001 From: qiucong Date: Mon, 30 Nov 2020 19:51:07 +0800 Subject: [PATCH] =?UTF-8?q?DEC-16052=20feat:=20bi.file=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6errorMsg=E9=BB=98=E8=AE=A4=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/single/input/file.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 0725712a1..114a47406 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-11) +- bi.file上传文件errorMsg默认调用国际化 - 修复了文本标签text传递空字符串后显示value值的问题 - 限制了title的最大高度 - bi.textarea_editor添加setWatermark方法 diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 15e642a91..2d220e7dd 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -525,7 +525,7 @@ } var error = BI.some(_wrap.attach_array, function (index, attach) { if (attach.errorCode) { - BI.Msg.toast(attach.errorMsg, { level: "error" }); + BI.Msg.toast(BI.i18nText(attach.errorMsg), { level: "error" }); self.fireEvent(BI.File.EVENT_ERROR, attach); return true; }