浏览代码

Fixed loading message not hide bug

zhixin 5 年之前
父节点
当前提交
e6d7a019ad
共有 1 个文件被更改,包括 12 次插入0 次删除
  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)