From 1c177f297015c0d0dbdabe22558ffcf135b7daf1 Mon Sep 17 00:00:00 2001 From: morning-star <1453017105@qq.com> Date: Wed, 20 Dec 2023 10:19:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(treetable):=20=E4=BF=AE=E5=A4=8D=20treeTabl?= =?UTF-8?q?e.updateNode()=20=E6=9B=B4=E6=96=B0=E5=B7=B2=E6=89=93=E5=BC=80?= =?UTF-8?q?=E7=9A=84=E8=8A=82=E7=82=B9=E6=97=B6=EF=BC=8C=E6=9C=AA=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=B8=B2=E6=9F=93=E8=A1=A8=E5=8D=95=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#1468)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #1463 --- src/modules/treeTable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/treeTable.js b/src/modules/treeTable.js index d8d3ad91..6b25496c 100644 --- a/src/modules/treeTable.js +++ b/src/modules/treeTable.js @@ -1037,6 +1037,10 @@ layui.define(['table'], function (exports) { trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen); expandNode({trElem: trDefaultExpand.first()}, true); }); + // #1463 expandNode 中已经展开过的节点不会重新渲染 + debounceFn('renderTreeTable2-' + tableId, function () { + form.render($('.layui-table-tree[lay-id="' + tableId + '"]')); + }, 0)(); } else { debounceFn('renderTreeTable-' + tableId, function () { options.hasNumberCol && formatNumber(that);