From 681762a612ff787f20cab4f0005fd2c104424940 Mon Sep 17 00:00:00 2001 From: dailer Date: Wed, 9 Aug 2023 20:05:34 +0800 Subject: [PATCH] =?UTF-8?q?BI-130558=20fix:=20=E3=80=906.0.13=E5=8F=91?= =?UTF-8?q?=E6=95=A3=E3=80=91=E9=A2=84=E8=A7=88=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=BC=A9=E6=94=BE=EF=BC=8C=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=90=9C=E7=B4=A2=EF=BC=8C=E5=85=A8=E9=80=89?= =?UTF-8?q?=E5=92=8C=E9=80=89=E9=A1=B9=E7=9A=84=E7=BC=A9=E6=94=BE=E6=AF=94?= =?UTF-8?q?=E4=BE=8B=E4=B8=8D=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fineui/src/base/combination/searcher.js | 2 +- packages/fineui/src/base/index.js | 2 +- .../multilayerdownlist/combo.downlist.js | 2 +- .../search/multiselect.search.loader.js | 20 +++++++++---------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/fineui/src/base/combination/searcher.js b/packages/fineui/src/base/combination/searcher.js index bd161c7ef..d14fd32de 100644 --- a/packages/fineui/src/base/combination/searcher.js +++ b/packages/fineui/src/base/combination/searcher.js @@ -134,7 +134,7 @@ export class Searcher extends Widget { this.popupView = createWidget(popup, { type: SearcherView.xtype, chooseType, - }); + }, this); this.popupView.on(Controller.EVENT_CHANGE, (type, value, obj, ...args) => { this.fireEvent(Controller.EVENT_CHANGE, type, value, obj, ...args); if (type === Events.CLICK) { diff --git a/packages/fineui/src/base/index.js b/packages/fineui/src/base/index.js index da9f8a0c0..2484b870d 100644 --- a/packages/fineui/src/base/index.js +++ b/packages/fineui/src/base/index.js @@ -11,4 +11,4 @@ export * from "./layer"; export * from "./list"; export * from "./single"; export * from "./el"; -export * from "./context"; \ No newline at end of file +export * from "./context"; diff --git a/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js b/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js index c8824e46c..0862417da 100644 --- a/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js +++ b/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js @@ -33,7 +33,7 @@ export class MultiLayerDownListCombo extends Widget { items: o.items, chooseType: o.chooseType, value: o.value, - }); + }, this); this.popupview.on(MultiLayerDownListPopup.EVENT_CHANGE, value => { this.fireEvent(MultiLayerDownListCombo.EVENT_CHANGE, value); diff --git a/packages/fineui/src/widget/multiselect/search/multiselect.search.loader.js b/packages/fineui/src/widget/multiselect/search/multiselect.search.loader.js index 223d96b75..b601a572c 100644 --- a/packages/fineui/src/widget/multiselect/search/multiselect.search.loader.js +++ b/packages/fineui/src/widget/multiselect/search/multiselect.search.loader.js @@ -78,9 +78,9 @@ export class MultiSelectSearchLoader extends Widget { }, itemsCreator(op, callback) { self.storeValue && - (op = extend(op || {}, { - selectedValues: self.storeValue.value, - })); + (op = extend(op || {}, { + selectedValues: self.storeValue.value, + })); opts.itemsCreator(op, ob => { const keyword = (ob.keyword = opts.keywordGetter()); hasNext = ob.hasNext; @@ -113,7 +113,7 @@ export class MultiSelectSearchLoader extends Widget { el: { chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI, behaviors: { - redmark () { + redmark() { return true; }, }, @@ -123,7 +123,7 @@ export class MultiSelectSearchLoader extends Widget { } ], }, - itemsCreator (op, callback) { + itemsCreator(op, callback) { self.storeValue && (op = BI.extend(op || {}, { selectedValues: self.storeValue.value, })); @@ -146,13 +146,13 @@ export class MultiSelectSearchLoader extends Widget { }, value: opts.value, height: "fill", - }); - this.button_group.on(Controller.EVENT_CHANGE, function () { + }, this); + this.button_group.on(Controller.EVENT_CHANGE, function() { self.fireEvent(Controller.EVENT_CHANGE, arguments); }); const searchLoaderEventChangeName = opts.allowSelectAll ? SelectList.EVENT_CHANGE : ListPane.EVENT_CHANGE; - this.button_group.on(searchLoaderEventChangeName, function () { + this.button_group.on(searchLoaderEventChangeName, function() { self.fireEvent(MultiSelectSearchLoader.EVENT_CHANGE, arguments); }); } @@ -179,7 +179,7 @@ export class MultiSelectSearchLoader extends Widget { isAllSelected() { const o = this.options; - + return o.allowSelectAll ? this.button_group.isAllSelected() : false; } @@ -222,7 +222,7 @@ export class MultiSelectSearchLoader extends Widget { if (o.allowSelectAll) { return this.button_group.getValue(); } - + return { type: ButtonGroup.CHOOSE_TYPE_MULTI, value: this.button_group.getValue(),