Browse Source

Show Columns when height is not set
Show Columns when height is set

djhvscf 4 years ago
parent
commit
5898ec247a
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 7 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -148,7 +148,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
           }
           }
           this.$tableLoading.css('top', this.$header.outerHeight() + 1)
           this.$tableLoading.css('top', this.$header.outerHeight() + 1)
         })
         })
-        .on('all.bs.table', (event, name, args) => {
+        .on('all.bs.table', (event, name) => {
           console.log('**********')
           console.log('**********')
           console.log(`EVENT:: ${name}`)
           console.log(`EVENT:: ${name}`)
           console.log('**********')
           console.log('**********')
@@ -489,4 +489,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
       }
       }
     })
     })
   }
   }
+
+  _toggleColumn (index, checked, needUpdate) {
+    this.options.initialized = false
+    super._toggleColumn(index, checked, needUpdate)
+    UtilsFilterControl.syncHeaders(this)
+  }
 }
 }