From 47b705ed64efc34201f02e0717818b99782f6e1f Mon Sep 17 00:00:00 2001 From: chenzeyu Date: Mon, 23 Dec 2024 15:13:49 +0800 Subject: [PATCH] =?UTF-8?q?BI-160928=20fix=EF=BC=9A=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=8C=BA=E9=97=B4=E7=BB=91=E5=AE=9A=E5=AD=97=E6=AE=B5=EF=BC=8C?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E6=98=BE=E7=A4=BA=E6=97=B6=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=80=BC=E4=B8=8B=E6=8B=89=EF=BC=8C=E6=9C=89?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E5=80=BC=E7=9A=84=E5=86=85=E5=AE=B9=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/widget/timeinterval/timeinterval.js | 9 +++++++++ .../typescript/widget/timeinterval/timeinterval.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/packages/fineui/src/widget/timeinterval/timeinterval.js b/packages/fineui/src/widget/timeinterval/timeinterval.js index 4a4b580d7..11808d69c 100644 --- a/packages/fineui/src/widget/timeinterval/timeinterval.js +++ b/packages/fineui/src/widget/timeinterval/timeinterval.js @@ -31,6 +31,7 @@ export class TimeInterval extends Single { static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW"; static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW"; + static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW"; _defaultConfig() { const conf = super._defaultConfig(...arguments); @@ -102,6 +103,14 @@ export class TimeInterval extends Single { watermark, value: v, height: o.height, + listeners: [ + { + eventName: DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW, + action: () => { + this.fireEvent(TimeInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW); + }, + }, + ], }); combo.on(DynamicDateTimeCombo.EVENT_ERROR, () => { this._clearTitle(); diff --git a/packages/fineui/typescript/widget/timeinterval/timeinterval.ts b/packages/fineui/typescript/widget/timeinterval/timeinterval.ts index a36a217b3..4b8d0f1f4 100644 --- a/packages/fineui/typescript/widget/timeinterval/timeinterval.ts +++ b/packages/fineui/typescript/widget/timeinterval/timeinterval.ts @@ -8,6 +8,7 @@ export declare class TimeInterval extends Single { static EVENT_ERROR: string; static EVENT_BEFORE_START_POPUPVIEW: string; static EVENT_BEFORE_END_POPUPVIEW: string; + static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string; props: { minDate?: string;