Browse Source

BI-137665 fix: 代码优化

research/test
jian 11 months ago
parent
commit
3d59f37953
  1. 11
      packages/fineui/src/base/foundation/message.js

11
packages/fineui/src/base/foundation/message.js

@ -33,10 +33,10 @@ const defaultConfig = {
export const Msg = {
alert(title, message, callback, config = defaultConfig) {
this._show(false, title, message, callback, config);
_show(false, title, message, callback, config);
},
confirm(title, message, callback, config = defaultConfig) {
this._show(true, title, message, callback, config);
_show(true, title, message, callback, config);
},
toast(message, options, context) {
isString(options) && (options = { level: options });
@ -97,7 +97,9 @@ export const Msg = {
toast.destroy?.();
};
},
_show(hasCancel, title, message, callback, config) {
};
function _show(hasCancel, title, message, callback, config) {
isNull($mask) &&
($mask = Widget._renderEngine
.createElement("<div class=\"bi-z-index-mask\">")
@ -265,5 +267,4 @@ export const Msg = {
};
messageShows[messageShows.length] = createWidget(conf);
},
};
}

Loading…
Cancel
Save