Browse Source

Fixed virtualScroll option bug when import treegrid

zhixin 6 years ago
parent
commit
593dae7898
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/extensions/treegrid/bootstrap-table-treegrid.js

+ 3 - 1
src/extensions/treegrid/bootstrap-table-treegrid.js

@@ -32,7 +32,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
 
   initBody (...args) {
-    this.options.virtualScroll = !this.treeEnable
+    if (this.treeEnable) {
+      this.options.virtualScroll = false
+    }
     super.initBody(...args)
   }