fix(table): 关闭展开状态时,未重置单元格滚动条位置 (#1536)

* fix(table): 关闭展开状态时,未重置滚动条水平位置

* update code
pull/1550/head
morning-star 2024-01-07 22:15:07 +08:00 committed by GitHub
parent 2a1bb0e985
commit 232a959855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2585,6 +2585,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
});
});
$this.remove();
// 重置单元格滚动条位置
elemCell.scrollTop(0);
elemCell.scrollLeft(0);
});
}