From 6965efb993aae6fd2330a948bc268fe9ac787e53 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 9 Oct 2023 16:24:24 +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/combination/loader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/base/combination/loader.js b/packages/fineui/src/base/combination/loader.js index 1d0711158..b362a5922 100644 --- a/packages/fineui/src/base/combination/loader.js +++ b/packages/fineui/src/base/combination/loader.js @@ -248,7 +248,7 @@ export class Loader extends Widget { this.button_group.addItems(...arguments); } - _populate(items) { + _populate(items, _key, options={}) { const o = this.options; if (arguments.length === 0 && isFunction(o.itemsCreator)) { o.itemsCreator.apply(this, [ @@ -265,6 +265,9 @@ export class Loader extends Widget { return false; } this.options.items = items; + if (options.reserveAttributes) { + return true; + } this.times = 1; this.count = 0; this.count += items.length;