keepload 提供默认配置,不再提供自定义参数

develop
就眠仪式 2020-09-30 13:37:45 +08:00
parent 1586fffb26
commit 2fff8268b4
5 changed files with 4 additions and 11 deletions

View File

@ -1,6 +1,5 @@
@import url("../../layui/css/layui.css");
@import url("pear-module/dtree/font/dtreefont.css");
@import url("pear-module/icon/iconfont.css");
@import url("pear-module/dtree/dtree.css");

View File

@ -136,8 +136,8 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
this.keepLoad = function(param) {
compatible()
setTimeout(function() {
$(".loader-main").fadeOut(200);
}, param.other.keepLoad)
$(".loader-main").fadeOut(400);
}, 2500)
}
this.themeRender = function(option) {

View File

@ -7,7 +7,6 @@ layui.define(['jquery', 'element','util'], function(exports) {
element = layui.element;
var topBar = new function() {
util.fixbar({});
}
exports(MOD_NAME,topBar);

View File

@ -197,9 +197,7 @@ layui.define(['layer', 'table'], function (exports) {
});
}
};
// 给图标列绑定事件
$('body').on('click', '.treeTable .treeTable-icon', function () {
var treeLinkage = $(this).parents('.treeTable').attr('treeLinkage');

View File

@ -63,8 +63,5 @@
"title": "问答社区",
"href": "http://forum.pearadmin.com/"
}
],
"other": {
"keepLoad": 1200
}
]
}