Browse Source

refactor: 补充描述

es6
Kira 4 years ago
parent
commit
8121299caf
  1. 3
      typescript/index.ts
  2. 20
      typescript/widget/date/calendar/popup.calendar.date.ts

3
typescript/index.ts

@ -147,6 +147,7 @@ import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth';
import { _utils } from './core/utils'; import { _utils } from './core/utils';
import { Controller } from "./core/controller/controller"; import { Controller } from "./core/controller/controller";
import { LayerController } from "./core/controller/controller.layer"; 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 { 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; FloatCenterLayout: typeof FloatCenterLayout;
Msg: _msg; Msg: _msg;
DynamicYearMonthPopup: typeof DynamicYearMonthPopup; DynamicYearMonthPopup: typeof DynamicYearMonthPopup;
DateCalendarPopup: typeof DateCalendarPopup;
} }
export default { export default {
@ -453,4 +455,5 @@ export {
ListView, ListView,
FloatCenterLayout, FloatCenterLayout,
DynamicYearMonthPopup, DynamicYearMonthPopup,
DateCalendarPopup,
}; };

20
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;
}
}
Loading…
Cancel
Save