From 214732c310001a82625cc43c4d478ef81e32cf4f Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 9 Oct 2023 18:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20custom=5Ftree?= =?UTF-8?q?=20+=20bi.loader=EF=BC=8Cpopulate=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E2=80=9C=E6=97=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E2=80=9D=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/tree/customtree.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/fineui/src/base/tree/customtree.js b/packages/fineui/src/base/tree/customtree.js index df3a87671..349ae0912 100644 --- a/packages/fineui/src/base/tree/customtree.js +++ b/packages/fineui/src/base/tree/customtree.js @@ -123,9 +123,8 @@ export class CustomTree extends Widget { itemsCreator: (op, callback) => { itemsCreator.apply(this, [ op, - items => { - const args = Array.prototype.slice.call(arguments, 0); - args[0] = this._formatItems(items); + (...args) => { + args[0] = this._formatItems(args[0]); callback(...args); } ]);