浏览代码

Update bootstrap-table.js

文翼 6 年之前
父节点
当前提交
f1e5f663a9
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2 7
      src/bootstrap-table.js

+ 2 - 7
src/bootstrap-table.js

@@ -2002,13 +2002,8 @@
           }
           }
         }
         }
 
 
-        if (
-          type === 'click' &&
-            this.options.detailViewByClick
-        ) {
-          const $detailIcon = $tr.find('.detail-icon')
-          const detailFormatter = this.header.detailFormatters[index - 1] || undefined
-          this.toggleDetailView($detailIcon, detailFormatter)
+        if (type === 'click' && this.options.detailViewByClick) {
+          this.toggleDetailView($tr.find('.detail-icon'), this.header.detailFormatters[index - 1])
         }
         }
       })
       })