mirror of
https://gitee.com/layui/layui.git
synced 2025-05-05 13:18:00 +08:00
优化 table setRowChecked
方法中标注当前选中行样式的判断逻辑
This commit is contained in:
parent
4058980531
commit
6111dba53d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user