From b4fe5f7101c8cc639a9b82c425a7d37b64763db9 Mon Sep 17 00:00:00 2001 From: morning-star <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:55:36 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=20=E6=81=A2=E5=A4=8D=20#1773=20?= =?UTF-8?q?=E7=9A=84=E5=8F=98=E6=9B=B4=EF=BC=8C=E4=BB=A5=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=87=AA=E5=8A=A8=E5=AE=BD=E5=BA=A6=E7=9A=84?= =?UTF-8?q?=E5=88=97=E8=A2=AB=E6=8B=96=E6=8B=BD=E6=97=B6=E7=9A=84=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98=20(#2169)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit revert #1773 --- src/modules/table.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 505e5889..1fffc244 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -424,10 +424,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ that.renderStyle(); // 生成替代元素 - if(hasRender[0]){ - that.resizeObserver && that.resizeObserver.unobserve(that.elem[0]); - hasRender.remove(); // 如果已经渲染,则 Rerender - } + hasRender[0] && hasRender.remove(); // 如果已经渲染,则 Rerender othis.after(reElem); // 各级容器 @@ -2791,14 +2788,6 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ that.layMain.scrollTop(scrollTop + (delta > 0 ? -step : step)); }); - if(window.ResizeObserver){ - if(!that.resizeObserver){ - that.resizeObserver = new ResizeObserver(function(){ - table.resize(that.key); - }); - } - that.resizeObserver.observe(that.elem[0]); - } }; // 全局事件