ソースを参照

Fixed virtualScroll option bug when import treegrid

zhixin 6 年 前
コミット
593dae7898
1 ファイル変更3 行追加1 行削除
  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)
   }