ABPCMS.Web/Abp/Framework/scripts/libs/abp.sweet-alert.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var abp = abp || {};
(function ($) {
if (!sweetAlert || !$) {
return;
}
/* DEFAULTS *************************************************/
abp.libs = abp.libs || {};
abp.libs.sweetAlert = {
config: {
'default': {
},
info: {
icon: 'info'
},
success: {
icon: 'success'
},
warn: {
icon: 'warning'
},
error: {
icon: 'error'
},
confirm: {
icon: 'warning',
title: 'Are you sure?',
buttons: ['Cancel', 'Yes']
}
}
};
/* MESSAGE **************************************************/
var showMessage = function (type, message, title) {
if (!title) {
title = message;
message = undefined;
}
var opts = $.extend(
{},
abp.libs.sweetAlert.config['default'],
abp.libs.sweetAlert.config[type],
{
title: title,
text: message
}
);
return $.Deferred(function ($dfd) {
sweetAlert(opts).then(function () {
$dfd.resolve();
});
});
};
abp.message.info = function (message, title) {
后面还有 47 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
