Browse Source

Fixed loading message not hide bug

zhixin 5 years ago
parent
commit
e6d7a019ad
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)