From f64efbdc301ec40dbcc216e1e1f3cfe413687a80 Mon Sep 17 00:00:00 2001 From: dailer Date: Thu, 13 Jul 2023 17:41:36 +0800 Subject: [PATCH] =?UTF-8?q?BI-129683=20fix:=20=E3=80=906.0.12=E5=8F=91?= =?UTF-8?q?=E6=95=A3=E3=80=91=E6=96=87=E6=9C=AC=E4=B8=8B=E6=8B=89=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6=E7=BB=91=E5=AE=9A=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=85=A8=E9=80=89=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=85=A8=E9=80=89?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=BA=E5=8D=8A=E9=80=89=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=8B=BE=E9=80=89=E5=85=A8=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fineui/src/widget/multiselect/loader.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/fineui/src/widget/multiselect/loader.js b/packages/fineui/src/widget/multiselect/loader.js index f7146250f..f39c35ef7 100644 --- a/packages/fineui/src/widget/multiselect/loader.js +++ b/packages/fineui/src/widget/multiselect/loader.js @@ -80,7 +80,7 @@ export class MultiSelectInnerLoader extends Widget { } o.itemsCreator.apply(this, [ { times: ++this.times }, - function () { + function() { self.next.setLoaded(); self.addItems(...arguments); } @@ -105,7 +105,7 @@ export class MultiSelectInnerLoader extends Widget { ], value: o.value, }); - this.button_group.on(Controller.EVENT_CHANGE, function (type, value, obj) { + this.button_group.on(Controller.EVENT_CHANGE, function(type, value, obj) { if (type === Events.CLICK) { const node = self.cachGroup.getNodeByValue(value); if (node) { @@ -158,12 +158,12 @@ export class MultiSelectInnerLoader extends Widget { }); o.isDefaultInit && - isEmpty(o.items) && - nextTick( - bind(function () { - o.isDefaultInit && isEmpty(o.items) && this._populate(); - }, this) - ); + isEmpty(o.items) && + nextTick( + bind(function() { + o.isDefaultInit && isEmpty(o.items) && this._populate(); + }, this) + ); } hasNext() { @@ -221,7 +221,7 @@ export class MultiSelectInnerLoader extends Widget { if (arguments.length === 0 && isFunction(o.itemsCreator)) { o.itemsCreator.apply(this, [ { times: 1 }, - function (items, keyword) { + function(items, keyword) { if (arguments.length === 0) { throw new Error("object already registered"); } @@ -289,11 +289,11 @@ export class MultiSelectInnerLoader extends Widget { } getAllButtons() { - return this.button_group.getAllButtons(); + return this.cachGroup.getAllButtons(); } getAllLeaves() { - return this.button_group.getAllLeaves(); + return this.cachGroup.getAllLeaves(); } getSelectedButtons() {