Browse Source

无jira 上传文件大小报错支持errorText属性

es6
zsmj 2 years ago
parent
commit
1833843bec
  1. 2
      src/base/single/input/file.js

2
src/base/single/input/file.js

@ -573,7 +573,7 @@
BI.Msg.toast(o.errorText({
errorType: 1,
file: item
}) || BI.i18nText("BI-Upload_File_Size_Error", Math.cell(wrap.maxSize / 1024 / 1024)), { level: "error" });
}) || BI.i18nText("BI-Upload_File_Size_Error", Math.ceil(wrap.maxSize / 1024 / 1024)), { level: "error" });
self.fireEvent(BI.File.EVENT_ERROR, {
errorType: 1,
file: item

Loading…
Cancel
Save