Browse Source

Pull request #3727: 无jira任务 fix:补充MultiLayerDownListCombo的抛出事件

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '3f4f732e333ec92e707dd6c730576429251bb622':
  无jira任务 fix:补充MultiLayerDownListCombo的抛出事件
research/test
Claire.Tang-唐锦霞 11 months ago
parent
commit
9429da8e76
  1. 5
      packages/fineui/src/widget/multilayerdownlist/combo.downlist.js
  2. 1
      packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts

5
packages/fineui/src/widget/multilayerdownlist/combo.downlist.js

@ -10,6 +10,7 @@ export class MultiLayerDownListCombo extends Widget {
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; static EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW";
_defaultConfig() { _defaultConfig() {
return extend(super._defaultConfig(...arguments), { return extend(super._defaultConfig(...arguments), {
@ -70,6 +71,10 @@ export class MultiLayerDownListCombo extends Widget {
this.downlistcombo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => { this.downlistcombo.on(Combo.EVENT_BEFORE_POPUPVIEW, () => {
this.fireEvent(MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW);
}); });
this.downlistcombo.on(Combo.EVENT_BEFORE_HIDEVIEW, () => {
this.fireEvent(MultiLayerDownListCombo.EVENT_BEFORE_HIDEVIEW);
});
} }
hideView() { hideView() {

1
packages/fineui/typescript/widget/multilayerdownlist/multilayerdownlist.combo.ts

@ -7,6 +7,7 @@ export declare class MultiLayerDownListCombo extends Widget {
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
static EVENT_SON_VALUE_CHANGE: string; static EVENT_SON_VALUE_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string; static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_HIDEVIEW: string;
props: { props: {
adjustLength: Combo['props']['adjustLength']; adjustLength: Combo['props']['adjustLength'];

Loading…
Cancel
Save