Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
alert: function (title, content, enterCallback, dialogOptions) {
dialogOptions = dialogOptions || {};
var hasBtns = ((dialogOptions.btns + '') !== 'false');
return this.mxDialog('mx-dialog/alert', {
title: title,
content: content,
enterCallback: enterCallback,
hasBtns: hasBtns
}, Magix.mix({
width: 320,
closable: false,
mask: false
}, dialogOptions));
},
/**
alert: function (title, content, enterCallback, dialogOptions) {
dialogOptions = dialogOptions || {};
var hasBtns = ((dialogOptions.btns + '') !== 'false');
return this.mxDialog('mx-dialog/alert', {
title: title,
content: content,
enterCallback: enterCallback,
hasBtns: hasBtns
}, Magix.mix({
width: 320,
emptyClosable: true,
closable: false,
mask: false
}, dialogOptions));
},
/**
alert(title, content, enterCallback, dialogOptions) {
dialogOptions = dialogOptions || {};
let hasBtns = ((dialogOptions.btns + '') !== 'false');
return this.mxDialog('@./alert', {
title,
content,
enterCallback,
hasBtns
}, Magix.mix({
width: 320,
emptyClosable: true, //点击空白区域是否允许关闭浮层
closable: false,
mask: false
}, dialogOptions))
},
confirm: function (viewOptions, dialogOptions) {
return this.mxDialog('mx-dialog/confirm', viewOptions, Magix.mix({
width: 320,
closable: false,
mask: false
}, (dialogOptions || {})));
},
/**
confirm: function (viewOptions, dialogOptions) {
return this.mxDialog('mx-dialog/confirm', viewOptions, Magix.mix({
width: 320,
emptyClosable: true,
closable: false,
mask: false
}, (dialogOptions || {})));
},
/**