From 9ae59913ae716f617d9485f36589d86ffd53e1b0 Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Fri, 12 Jan 2024 19:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20fix:=E8=A1=A5?= =?UTF-8?q?=E5=85=85MultiLayerDownListCombo=E7=9A=84=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fineui/src/widget/multilayerdownlist/combo.downlist.js | 5 +++++ .../widget/multilayerdownlist/multilayerdownlist.combo.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js b/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js index 0862417da..56bf41107 100644 --- a/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js +++ b/packages/fineui/src/widget/multilayerdownlist/combo.downlist.js @@ -10,6 +10,7 @@ export class MultiLayerDownListCombo extends Widget { static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; + static EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; _defaultConfig() { return extend(super._defaultConfig(...arguments), { @@ -70,6 +71,10 @@ export class MultiLayerDownListCombo extends Widget { this.downlistcombo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => { this.fireEvent(MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW); }); + + this.downlistcombo.on(Combo.EVENT_BEFORE_HIDEVIEW, () => { + this.fireEvent(MultiLayerDownListCombo.EVENT_BEFORE_HIDEVIEW); + }); } hideView() { diff --git a/packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts b/packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts index 87359ffe3..058c9af7d 100644 --- a/packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts +++ b/packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts @@ -7,6 +7,7 @@ export declare class MultiLayerDownListCombo extends Widget { static EVENT_CHANGE: string; static EVENT_SON_VALUE_CHANGE: string; static EVENT_BEFORE_POPUPVIEW: string; + static EVENT_BEFORE_HIDEVIEW: string; props: { adjustLength: Combo['props']['adjustLength'];