浏览代码

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) {
   initBody (...args) {
-    this.options.virtualScroll = !this.treeEnable
+    if (this.treeEnable) {
+      this.options.virtualScroll = false
+    }
     super.initBody(...args)
     super.initBody(...args)
   }
   }