63 lines
1.8 KiB
TypeScript
63 lines
1.8 KiB
TypeScript
/// <reference types="miniprogram-api-typings" />
|
|
import { SuperComponent } from '../common/src/index';
|
|
import { TdCalendarProps } from './type';
|
|
export interface CalendarProps extends TdCalendarProps {
|
|
}
|
|
export default class Calendar extends SuperComponent {
|
|
behaviors: string[];
|
|
externalClasses: string[];
|
|
options: WechatMiniprogram.Component.ComponentOptions;
|
|
properties: TdCalendarProps;
|
|
data: {
|
|
prefix: string;
|
|
classPrefix: string;
|
|
months: any[];
|
|
scrollIntoView: string;
|
|
innerConfirmBtn: {};
|
|
realLocalText: {};
|
|
currentMonth: {};
|
|
actionButtons: {
|
|
preYearBtnDisable: boolean;
|
|
prevMonthBtnDisable: boolean;
|
|
nextMonthBtnDisable: boolean;
|
|
nextYearBtnDisable: boolean;
|
|
};
|
|
};
|
|
controlledProps: {
|
|
key: string;
|
|
event: string;
|
|
}[];
|
|
lifetimes: {
|
|
created(): void;
|
|
ready(): void;
|
|
};
|
|
observers: {
|
|
type(v: any): void;
|
|
confirmBtn(v: any): void;
|
|
'firstDayOfWeek,minDate,maxDate'(firstDayOfWeek: any, minDate: any, maxDate: any): void;
|
|
value(v: any): void;
|
|
visible(v: any): void;
|
|
format(v: any): void;
|
|
};
|
|
methods: {
|
|
initialValue(): void;
|
|
scrollIntoView(): void;
|
|
getCurrentYearAndMonth(v: Date): {
|
|
year: number;
|
|
month: number;
|
|
};
|
|
updateActionButton(value: Date): void;
|
|
calcCurrentMonth(newValue?: any): void;
|
|
calcMonths(): void;
|
|
close(trigger: any): void;
|
|
onVisibleChange(): void;
|
|
handleClose(): void;
|
|
handleSelect(e: any): void;
|
|
onTplButtonTap(): void;
|
|
toTime(val: any): any;
|
|
onScroll(e: any): void;
|
|
getCurrentDate(): any;
|
|
handleSwitchModeChange(e: any): void;
|
|
};
|
|
}
|