Browse Source

Merge pull request #4885 from wenzhixin/fix/4884

Fixed loading message not hide bug
Dustin Utecht 5 years ago
parent
commit
0fec9d074c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/extensions/fixed-columns/bootstrap-table-fixed-columns.js

+ 12 - 0
src/extensions/fixed-columns/bootstrap-table-fixed-columns.js

@@ -166,6 +166,18 @@ $.BootstrapTable = class extends $.BootstrapTable {
     })
   }
 
+  hideLoading () {
+    super.hideLoading()
+
+    if (this.needFixedColumns && this.options.fixedNumber) {
+      this.$fixedColumns.find('.fixed-table-loading').hide()
+    }
+
+    if (this.needFixedColumns && this.options.fixedRightNumber) {
+      this.$fixedColumnsRight.find('.fixed-table-loading').hide()
+    }
+  }
+
   initFixedColumnsHeader () {
     if (this.options.height) {
       this.needFixedColumns = this.$tableHeader.outerWidth(true) < this.$tableHeader.find('table').outerWidth(true)