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'];