From 28347fcf8f97912d6c90d81931f9ed5527dc3627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20table=20=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E5=B1=95=E5=BC=80=E5=86=8D=E6=94=B6=E7=BC=A9=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=BD=93=E5=88=97=E9=80=9A=E8=BF=87=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E8=BF=87=E5=AE=BD=E5=BA=A6=EF=BC=8C=E5=88=97?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=A6=82=E7=8E=87=E6=80=A7=E9=94=99=E4=BD=8D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 1a9f760d..0db61e3c 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -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(); });