update okProgress
parent
4fd08fd911
commit
7c496bb7f8
|
|
@ -4,10 +4,17 @@ layui.config({
|
|||
nprogress: "okProgress/nprogress"
|
||||
}).define(["nprogress"], function (exports) {
|
||||
"use strict";
|
||||
|
||||
// 顶部进度条
|
||||
// NProgress.start();
|
||||
// window.onload = function () {
|
||||
// NProgress.done();
|
||||
// }
|
||||
|
||||
NProgress.start();
|
||||
window.onload = function () {
|
||||
if (document.readyState == "complete" || document.readyState == "interactive") {
|
||||
NProgress.done();
|
||||
}
|
||||
|
||||
exports("okProgress");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -40,8 +40,9 @@
|
|||
base: "../../lib/okPlugins/"
|
||||
}).extend({
|
||||
okLayer: "okLayer",
|
||||
okUtils: "okUtils"
|
||||
}).use(["element", "table", "form", "laydate", "okLayer", "okUtils"], function () {
|
||||
okUtils: "okUtils",
|
||||
okProgress: "okProgress/okProgress"
|
||||
}).use(["element", "table", "form", "laydate", "okLayer", "okUtils", "okProgress"], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
var laydate = layui.laydate;
|
||||
|
|
|
|||
Loading…
Reference in New Issue