From eabdc4aafa4a3292adcd5ae68831427ef16507dc Mon Sep 17 00:00:00 2001 From: Renzo Date: Thu, 12 Jan 2023 15:16:29 +0800 Subject: [PATCH] =?UTF-8?q?JSY-25995=20feat:=20TextValueCombo=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20EVENT=5FBEFORE=5FPOPUPVIEW=20=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/combo/textvaluecombo/combo.textvalue.js | 2 ++ typescript/case/combo/combo.textvalue.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/case/combo/textvaluecombo/combo.textvalue.js b/src/case/combo/textvaluecombo/combo.textvalue.js index 9dc088639..bc43fce64 100644 --- a/src/case/combo/textvaluecombo/combo.textvalue.js +++ b/src/case/combo/textvaluecombo/combo.textvalue.js @@ -130,6 +130,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, action: () => { changeTag = false; + this.fireEvent(BI.TextValueCombo.EVENT_BEFORE_POPUPVIEW); } }, { eventName: BI.Combo.EVENT_AFTER_HIDEVIEW, @@ -209,5 +210,6 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { this.combo.populate(items); } }); +BI.TextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.text_value_combo", BI.TextValueCombo); diff --git a/typescript/case/combo/combo.textvalue.ts b/typescript/case/combo/combo.textvalue.ts index 128ec03b6..f2a080ba5 100644 --- a/typescript/case/combo/combo.textvalue.ts +++ b/typescript/case/combo/combo.textvalue.ts @@ -4,6 +4,7 @@ export declare class TextValueCombo extends Widget { static xtype: string; static EVENT_CHANGE: string; + static EVENT_BEFORE_POPUPVIEW: string; clear(): void; setText(text: string): void;