From 14cac09e71cc9dc2c168a342dc90f00e4073ed75 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 5 Sep 2020 13:30:47 +0800 Subject: [PATCH] bugfix --- src/base/foundation/message.js | 4 ++-- src/less/base/single/tip/tip.toast.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/foundation/message.js b/src/base/foundation/message.js index c2a96e0ccd..4fbef7eb67 100644 --- a/src/base/foundation/message.js +++ b/src/base/foundation/message.js @@ -24,7 +24,7 @@ BI.Msg = function () { toast: function (message, options, context) { options = options || {}; context = context || BI.Widget._renderEngine.createElement("body"); - var level = options.level || "normal"; + var level = options.level || "common"; var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose; var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn; var toast = BI.createWidget({ @@ -200,4 +200,4 @@ BI.Msg = function () { messageShows[messageShows.length] = BI.createWidget(conf); } }; -}(); \ No newline at end of file +}(); diff --git a/src/less/base/single/tip/tip.toast.less b/src/less/base/single/tip/tip.toast.less index 7916ee8a18..1bdc43d788 100644 --- a/src/less/base/single/tip/tip.toast.less +++ b/src/less/base/single/tip/tip.toast.less @@ -14,10 +14,10 @@ &.toast-error{ background: @color-bi-background-failure; } - &.toast-normal{ + &.toast-normal, &.toast-common{ background: @color-bi-background-highlight; } & .toast-icon{ font-size: 16px; } -} \ No newline at end of file +}