优化 table setRowChecked 方法中标注当前选中行样式的判断逻辑

This commit is contained in:
sunxiaobin89 2023-06-07 15:25:19 +08:00
parent 4058980531
commit 6111dba53d

View File

@ -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);
}