From 8121299caf4296452a44493422f22a33cc9e2d5c Mon Sep 17 00:00:00 2001 From: Kira Date: Thu, 14 Jan 2021 10:06:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A1=A5=E5=85=85=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/index.ts | 3 +++ .../date/calendar/popup.calendar.date.ts | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 typescript/widget/date/calendar/popup.calendar.date.ts diff --git a/typescript/index.ts b/typescript/index.ts index 1367b7ab2..dfc63d328 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -147,6 +147,7 @@ import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth'; import { _utils } from './core/utils'; import { Controller } from "./core/controller/controller"; import { LayerController } from "./core/controller/controller.layer"; +import { DateCalendarPopup } from "./widget/date/calendar/popup.calendar.date"; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -300,6 +301,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { FloatCenterLayout: typeof FloatCenterLayout; Msg: _msg; DynamicYearMonthPopup: typeof DynamicYearMonthPopup; + DateCalendarPopup: typeof DateCalendarPopup; } export default { @@ -453,4 +455,5 @@ export { ListView, FloatCenterLayout, DynamicYearMonthPopup, + DateCalendarPopup, }; diff --git a/typescript/widget/date/calendar/popup.calendar.date.ts b/typescript/widget/date/calendar/popup.calendar.date.ts new file mode 100644 index 000000000..b0f826f4c --- /dev/null +++ b/typescript/widget/date/calendar/popup.calendar.date.ts @@ -0,0 +1,20 @@ +import { Widget } from "../../../core/widget"; + +export declare class DateCalendarPopup extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string; + + setMinDate(v: string): void; + setMaxDate(v: string): void; + setValue(v: { + year: number; + month: number; + day: number; + }): void; + getValue(): { + year: number; + month: number; + day: number; + } +}