Browse Source

Pull request #1489: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '14cac09e71cc9dc2c168a342dc90f00e4073ed75':
  bugfix
es6
guy 4 years ago
parent
commit
b1fc22fa67
  1. 2
      src/base/foundation/message.js
  2. 2
      src/less/base/single/tip/tip.toast.less

2
src/base/foundation/message.js

@ -24,7 +24,7 @@ BI.Msg = function () {
toast: function (message, options, context) { toast: function (message, options, context) {
options = options || {}; options = options || {};
context = context || BI.Widget._renderEngine.createElement("body"); 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 autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;
var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn; var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;
var toast = BI.createWidget({ var toast = BI.createWidget({

2
src/less/base/single/tip/tip.toast.less

@ -14,7 +14,7 @@
&.toast-error{ &.toast-error{
background: @color-bi-background-failure; background: @color-bi-background-failure;
} }
&.toast-normal{ &.toast-normal, &.toast-common{
background: @color-bi-background-highlight; background: @color-bi-background-highlight;
} }
& .toast-icon{ & .toast-icon{

Loading…
Cancel
Save