diff --git a/dist/base.js b/dist/base.js index b59e5490b7..fe04c6a328 100644 --- a/dist/base.js +++ b/dist/base.js @@ -9805,14 +9805,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item diff --git a/dist/bundle.ie.js b/dist/bundle.ie.js index d093ff0c0f..e25736cbb1 100644 --- a/dist/bundle.ie.js +++ b/dist/bundle.ie.js @@ -44891,14 +44891,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item diff --git a/dist/bundle.js b/dist/bundle.js index d7b6d3713d..728d335dd4 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -45295,14 +45295,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item diff --git a/dist/demo.js b/dist/demo.js index 261bffefc0..ffdb374efd 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -726,6 +726,7 @@ BI.shortcut("demo.editor", Demo.Editor);Demo.CodeEditor = BI.inherit(BI.Widget, cls: "layout-bg1", items: [{ type: "bi.multifile_editor", + accept: "*.zip;", width: 400, height: 300 }], @@ -6126,30 +6127,7 @@ Demo.HtapeLayout = BI.inherit(BI.Widget, { }; } }); -BI.shortcut("demo.htape", Demo.HtapeLayout);Demo.InlineVerticalLayout = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-absolute" - }, - render: function () { - return { - type: "bi.inline_vertical_adapt", - items: [{ - type: "bi.label", - text: "绝对布局", - cls: "layout-bg1", - width: 300, - height: 200 - }, { - type: "bi.label", - text: "绝对布局", - cls: "layout-bg1", - width: 300, - height: 100 - }] - }; - } -}); -BI.shortcut("demo.inline_vertical", Demo.InlineVerticalLayout);/** +BI.shortcut("demo.htape", Demo.HtapeLayout);/** * Created by User on 2017/3/22. */ Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, { diff --git a/dist/fineui.ie.js b/dist/fineui.ie.js index 8c7100131d..bd9400cab8 100644 --- a/dist/fineui.ie.js +++ b/dist/fineui.ie.js @@ -45133,14 +45133,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item diff --git a/dist/fineui.js b/dist/fineui.js index 788c5c351f..baa7d07ac5 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -45537,14 +45537,14 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 6e3b39a4b5..c560f2d287 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -496,14 +496,14 @@ size = item.fileSize || item.size; if (wrap.fileType && -1 === wrap.fileType.indexOf("*." + ext)) { // 文件类型不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 0, file: item }); } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) { // 文件大小不支持 - BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error")); + BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"), {level: "error"}); self.fireEvent(BI.File.EVENT_ERROR, { errorType: 1, file: item