From fd3d8bd77d38b86f8746fc3fa2218d7891bf677f Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 13 Jun 2023 15:10:01 +0800 Subject: [PATCH] =?UTF-8?q?BI-128204=20fix:=20=E3=80=906.0.12=E5=8F=91?= =?UTF-8?q?=E6=95=A3=E3=80=91=E8=87=AA=E9=80=82=E5=BA=94=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=8F=8A=E5=86=85=E5=AE=B9=E7=BC=A9=E6=94=BE=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E7=BC=A9=E5=B0=8F=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E8=BF=87=E6=BB=A4=E6=9F=A5=E7=9C=8B=E5=B7=B2=E9=80=89?= =?UTF-8?q?=E4=B8=8B=E6=96=B9=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/combination/searcher.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/base/combination/searcher.js b/packages/fineui/src/base/combination/searcher.js index 9cf9f17c0..5f1fa86c6 100644 --- a/packages/fineui/src/base/combination/searcher.js +++ b/packages/fineui/src/base/combination/searcher.js @@ -17,7 +17,8 @@ import { BlankSplitChar, Events, EVENT_RESPONSE_TIME, - Func + Func, + isFunction, } from "@/core"; import { ButtonGroup } from "./group.button"; import { Maskers } from "@/base/0.base"; @@ -127,7 +128,8 @@ export class Searcher extends Widget { } _assertPopupView() { - const { masker, popup, chooseType, isAutoSync, adapter } = this.options; + const { masker, popup, chooseType, isAutoSync } = this.options; + const adapter = isFunction(this.options.adapter) ? this.options.adapter() : this.options.adapter; if ((masker && !Maskers.has(this.getName())) || (masker === false && !this.popupView)) { this.popupView = createWidget(popup, { type: SearcherView.xtype,