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; + } +}