浏览代码

Fix #914: extra empty toolbar div bug.

zhixin 10 年之前
父节点
当前提交
b9e768d2b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/export/bootstrap-table-export.js

+ 1 - 1
src/extensions/export/bootstrap-table-export.js

@@ -30,7 +30,7 @@
         _initToolbar = BootstrapTable.prototype.initToolbar;
 
     BootstrapTable.prototype.initToolbar = function () {
-        this.showToolbar = true;
+        this.showToolbar = this.options.showExport;
 
         _initToolbar.apply(this, Array.prototype.slice.apply(arguments));