mirror of https://github.com/layui/layui
回滚 treeTable 选中色的状态同步
parent
365ac5af17
commit
a0faaaffee
|
@ -1527,7 +1527,7 @@ layui.define(['table'], function (exports) {
|
||||||
tr[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED); // 主体行
|
tr[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED); // 主体行
|
||||||
|
|
||||||
// 右侧固定行
|
// 右侧固定行
|
||||||
tr.eq(0).each(function(){
|
tr.each(function(){
|
||||||
var index = $(this).data('index');
|
var index = $(this).data('index');
|
||||||
var trFixedR = tableViewElem.find('.layui-table-fixed-r tbody tr[data-index="'+ index +'"]');
|
var trFixedR = tableViewElem.find('.layui-table-fixed-r tbody tr[data-index="'+ index +'"]');
|
||||||
trFixedR[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED);
|
trFixedR[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED);
|
||||||
|
|
Loading…
Reference in New Issue