From 6111dba53d9d10b496b58b52e565a02beef3cc55 Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Wed, 7 Jun 2023 15:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20`setRowChecked`=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=AD=E6=A0=87=E6=B3=A8=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E8=A1=8C=E6=A0=B7=E5=BC=8F=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index b2a87ada..d98f597d 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1454,7 +1454,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ }, opts); // 标注当前行选中样式 - if(opts.type !== 'checkbox' && opts.index !== 'all'){ + if(opts.index !== 'all'){ tr.addClass(ELEM_CLICK).siblings('tr').removeClass(ELEM_CLICK); }