ABPCMS.Web/Abp/Framework/scripts/libs/abp.spin.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var abp = abp || {};
(function () {
if (!$.fn.spin) {
return;
}
abp.libs = abp.libs || {};
abp.libs.spinjs = {
spinner_config: {
lines: 11,
length: 0,
width: 10,
radius: 20,
corners: 1.0,
trail: 60,
speed: 1.2
},
//Config for busy indicator in element's inner element that has '.abp-busy-indicator' class.
spinner_config_inner_busy_indicator: {
lines: 11,
length: 0,
width: 4,
radius: 7,
corners: 1.0,
trail: 60,
speed: 1.2
}
};
abp.ui.setBusy = function (elm, optionsOrPromise) {
optionsOrPromise = optionsOrPromise || {};
if (optionsOrPromise.always || optionsOrPromise['finally']) { //Check if it's promise
optionsOrPromise = {
promise: optionsOrPromise
};
}
var options = $.extend({}, optionsOrPromise);
if (!elm) {
if (options.blockUI != false) {
abp.ui.block();
}
$('body').spin(abp.libs.spinjs.spinner_config);
} else {
var $elm = $(elm);
var $busyIndicator = $elm.find('.abp-busy-indicator'); //TODO@Halil: What if more than one element. What if there are nested elements?
if ($busyIndicator.length) {
$busyIndicator.spin(abp.libs.spinjs.spinner_config_inner_busy_indicator);
} else {
if (options.blockUI != false) {
abp.ui.block(elm);
}
后面还有 35 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
