jqh 5 years ago
parent
commit
b8f8fed303
2 changed files with 5 additions and 14 deletions
  1. 1 5
      resources/assets/dcat/js/extensions/Loading.js
  2. 4 9
      resources/dist/dcat/js/app.js

+ 1 - 5
resources/assets/dcat/js/extensions/Loading.js

@@ -35,13 +35,9 @@ class Loading {
         content.appendTo(_this.$container);
     }
 
-    remove() {
+    destory() {
         this.$container.find(loading).remove();
     }
-
-    destroyAll() {
-        destroyAll()
-    }
 }
 
 function destroyAll() {

+ 4 - 9
resources/dist/dcat/js/app.js

@@ -1919,21 +1919,16 @@ var Loading = /*#__PURE__*/function () {
   }
 
   _createClass(Loading, [{
-    key: "remove",
-    value: function remove() {
+    key: "destory",
+    value: function destory() {
       this.$container.find(loading).remove();
     }
-  }, {
-    key: "destroyAll",
-    value: function destroyAll() {
-      _destroyAll();
-    }
   }]);
 
   return Loading;
 }();
 
-function _destroyAll() {
+function destroyAll() {
   $(loading).remove();
 }
 
@@ -1942,7 +1937,7 @@ function extend(Dcat) {
   Dcat.loading = function (options) {
     if (options === false) {
       // 关闭loading
-      return setTimeout(_destroyAll, 70);
+      return setTimeout(destroyAll, 70);
     } // 配置参数