UNPKG

shineout

Version:

Shein 前端组件库

38 lines (37 loc) 1.27 kB
/// <reference types="react" /> import { PureComponent } from '../component'; import { UnionPannelProps } from './Props'; interface DayState { hover: Date | null; } declare class Day extends PureComponent<UnionPannelProps, DayState> { handleNextMonth: () => void; handlePrevMonth: () => void; handleNextYear: () => void; handlePrevYear: () => void; handleMonthMode: () => void; handleYearMode: () => void; handleWeekLeave: () => void; cachedDays: Date[]; cachedDate: Date; today: Date; constructor(props: UnionPannelProps); getOptions(): { timeZone: string | undefined; weekStartsOn: any; }; getDays(): Date[]; formatWithDefaultTime(i?: number): Date; handleDayDoubleClick(date: Date): void; handleDayClick(date: Date, sync?: number): void; handleTimeChange(time: Date): void; handleWeek(hover: boolean): void; handleMonth(month: number): void; handleModeChange(mode: 'month' | 'year'): void; handleDayHover(date: Date): void; handleDisabled(date: Date, minDate?: Date, maxDate?: Date): boolean; renderDay(date: Date, minD?: Date, maxD?: Date): JSX.Element; renderTimepicker(): JSX.Element | undefined; render(): JSX.Element; } export default Day;