ソースを参照

Merge pull request #5157 from wenzhixin/fix/4974

Fix/4974
文翼 5 年 前
コミット
e14fec1f6e
1 ファイル変更3 行追加1 行削除
  1. 3 1
      src/extensions/copy-rows/bootstrap-table-copy-rows.js

+ 3 - 1
src/extensions/copy-rows/bootstrap-table-copy-rows.js

@@ -90,6 +90,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
 
   updateCopyButton () {
-    this.$copyButton.prop('disabled', !this.getSelections().length)
+    if (this.options.showCopyRows) {
+      this.$copyButton.prop('disabled', !this.getSelections().length)
+    }
   }
 }