From 62f556d3fe6bde53572fabb95d90a7ba397a3ffa Mon Sep 17 00:00:00 2001 From: qcc Date: Wed, 5 Dec 2018 15:01:00 +0800 Subject: [PATCH] =?UTF-8?q?DEC-5709=20=E6=96=87=E4=BB=B6toast=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/base.js | 4 ++-- dist/bundle.ie.js | 4 ++-- dist/bundle.js | 4 ++-- dist/demo.js | 26 ++------------------------ dist/fineui.ie.js | 4 ++-- dist/fineui.js | 4 ++-- src/base/single/input/file.js | 4 ++-- 7 files changed, 14 insertions(+), 36 deletions(-) diff --git a/dist/base.js b/dist/base.js index b59e5490b..fe04c6a32 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 d093ff0c0..e25736cbb 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 d7b6d3713..728d335dd 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 261bffefc..ffdb374ef 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 8c7100131..bd9400cab 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 788c5c351..baa7d07ac 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 6e3b39a4b..c560f2d28 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