修复 table 单元格展开再收缩后,当列通过拖拽改变过宽度,列存在概率性错位的问题

pull/1426/head
贤心 2023-11-19 22:56:23 +08:00
parent 2d8b2bcc5e
commit 28347fcf8f
1 changed files with 3 additions and 1 deletions

View File

@ -2541,7 +2541,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
that.setRowActive(index, [ELEM_EXPAND, ELEM_HOVER].join(' '), true); // 移除单元格展开样式
that.cssRules(key, function(item){
item.style.width = $this.data('cell-width'); // 恢复单元格展开前的宽度
that.resize(); // 滚动条补丁
setTimeout(function(){
that.resize(); // 滚动条补丁
});
});
$this.remove();
});