优化 treeTable 局部代码细节

pull/1321/head
贤心 2023-08-15 21:28:34 +08:00
parent a2aabef0de
commit 273b936588
1 changed files with 2 additions and 2 deletions

View File

@ -1523,11 +1523,11 @@ layui.define(['table'], function (exports) {
var index = tr.data('index');
var tableViewElem = options.elem.next();
tr[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED); // 主体行
// 右侧固定行
tr.each(function(){
tr.eq(0).each(function(){
var index = $(this).data('index');
var trFixedR = tableViewElem.find('.layui-table-fixed-r tbody tr[data-index="'+ index +'"]');
trFixedR[checked ? 'addClass' : 'removeClass'](ELEM_CHECKED);