瀏覽代碼

fix: _toggleLoading when only click

Hugh Harlequin 1 年之前
父節點
當前提交
e052f5b7db
共有 4 個文件被更改,包括 8 次插入2 次删除
  1. 4 1
      dist/js/fileinput.js
  2. 0 0
      dist/js/fileinput.min.js
  3. 0 0
      dist/js/fileinput.min.js.map
  4. 4 1
      js/fileinput.js

+ 4 - 1
dist/js/fileinput.js

@@ -1066,7 +1066,10 @@
             }
             $el[0].closest('.input-group').addEventListener('click', function (e) {
                 $el.click();
-            })
+            });
+            $el.on('click', function () {
+                self._toggleLoading('show');
+            });
         },
         _initFileManager: function () {
             var self = this;

文件差異過大導致無法顯示
+ 0 - 0
dist/js/fileinput.min.js


文件差異過大導致無法顯示
+ 0 - 0
dist/js/fileinput.min.js.map


+ 4 - 1
js/fileinput.js

@@ -1066,7 +1066,10 @@
             }
             $el[0].closest('.input-group').addEventListener('click', function (e) {
                 $el.click();
-            })
+            });
+            $el.on('click', function () {
+                self._toggleLoading('show');
+            });
         },
         _initFileManager: function () {
             var self = this;

部分文件因文件數量過多而無法顯示