|
|
|
@ -22,7 +22,7 @@ BI.Msg = function () {
|
|
|
|
|
// BI.Msg.prompt(title, message, value, callback, min_width);
|
|
|
|
|
}, |
|
|
|
|
toast: function (message, options, context) { |
|
|
|
|
BI.isString(options) && (options = { level: options }) |
|
|
|
|
BI.isString(options) && (options = { level: options }); |
|
|
|
|
options = options || {}; |
|
|
|
|
context = context || BI.Widget._renderEngine.createElement("body"); |
|
|
|
|
var level = options.level || "common"; |
|
|
|
@ -67,11 +67,11 @@ BI.Msg = function () {
|
|
|
|
|
|
|
|
|
|
autoClose && BI.delay(function () { |
|
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
|
toast.destroy(); |
|
|
|
|
toast.destroy?.(); |
|
|
|
|
}, 5000); |
|
|
|
|
return function () { |
|
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
|
toast.destroy(); |
|
|
|
|
toast.destroy?.(); |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
_show: function (hasCancel, title, message, callback) { |
|
|
|
|