From 232a95985595c8f1fe8fede9facb261864de4ae7 Mon Sep 17 00:00:00 2001 From: morning-star <26325820+Sight-wcg@users.noreply.github.com> Date: Sun, 7 Jan 2024 22:15:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E5=85=B3=E9=97=AD=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E7=8A=B6=E6=80=81=E6=97=B6=EF=BC=8C=E6=9C=AA=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E5=8D=95=E5=85=83=E6=A0=BC=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=20(#1536)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(table): 关闭展开状态时,未重置滚动条水平位置 * update code --- src/modules/table.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/table.js b/src/modules/table.js index 72e5cc8b..94011e7c 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2585,6 +2585,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ }); }); $this.remove(); + // 重置单元格滚动条位置 + elemCell.scrollTop(0); + elemCell.scrollLeft(0); }); }