From f453f15b714b86f31f51a8dcfc2dbedf49aaa9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 9 Aug 2023 23:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20treeTable=20=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/treeTable.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/treeTable.js b/src/modules/treeTable.js index dd033bd0..87cf5b62 100644 --- a/src/modules/treeTable.js +++ b/src/modules/treeTable.js @@ -1245,7 +1245,7 @@ layui.define(['table'], function (exports) { options.hasNumberCol && formatNumber(that); // 重新适配尺寸 - table.resize(id); + treeTable.resize(id); } /** @@ -1396,9 +1396,6 @@ layui.define(['table'], function (exports) { tableViewElem.find(ELEM_MAIN).find('tr[lay-data-index="' + newNodes[0][LAY_DATA_INDEX] + '"]').get(0).scrollIntoViewIfNeeded(); } - // 重新适配尺寸 - table.resize(id); - return newNodes; }