浏览代码

Update bootstrap-table-group-by.js

Fixed the build of the checkbox in bootstrap-table, which has data-single-select="true"
EgorTrutnev 2 年之前
父节点
当前提交
0f5ecf5652
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/group-by-v2/bootstrap-table-group-by.js

+ 1 - 1
src/extensions/group-by-v2/bootstrap-table-group-by.js

@@ -128,7 +128,7 @@ BootstrapTable.prototype.initBody = function (...args) {
     let visibleColumns = 0
 
     this.columns.forEach(column => {
-      if (column.checkbox) {
+      if (column.checkbox && !that.options.singleSelect) {
         checkBox = true
       } else if (column.visible) {
         visibleColumns += 1