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("../../layui/css/layui.css");
@import url("pear-module/dtree/font/dtreefont.css"); @import url("pear-module/dtree/font/dtreefont.css");
@import url("pear-module/icon/iconfont.css"); @import url("pear-module/icon/iconfont.css");
@import url("pear-module/dtree/dtree.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) { this.keepLoad = function(param) {
compatible() compatible()
setTimeout(function() { setTimeout(function() {
$(".loader-main").fadeOut(200); $(".loader-main").fadeOut(400);
}, param.other.keepLoad) }, 2500)
} }
this.themeRender = function(option) { this.themeRender = function(option) {

View File

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

View File

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

View File

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