| | |
| | | import { ButtonProps } from '../button/index'; |
| | | export interface TdCalendarProps { |
| | | allowSameDay?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | autoClose?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | |
| | | confirmBtn?: { |
| | | type: null; |
| | | value?: string | ButtonProps | null; |
| | | }; |
| | | style?: { |
| | | type: StringConstructor; |
| | | value?: string; |
| | | }; |
| | | firstDayOfWeek?: { |
| | | type: NumberConstructor; |
| | |
| | | type: undefined; |
| | | value?: CalendarFormatType; |
| | | }; |
| | | localeText?: { |
| | | type: ObjectConstructor; |
| | | value?: CalendarLocaleText; |
| | | }; |
| | | maxDate?: { |
| | | type: NumberConstructor; |
| | | value?: number; |
| | |
| | | minDate?: { |
| | | type: NumberConstructor; |
| | | value?: number; |
| | | }; |
| | | readonly?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | switchMode?: { |
| | | type: StringConstructor; |
| | | value?: 'none' | 'month' | 'year-month'; |
| | | }; |
| | | title?: { |
| | | type: StringConstructor; |
| | |
| | | value?: 'single' | 'multiple' | 'range'; |
| | | }; |
| | | usePopup?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | usingCustomNavbar?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | |
| | | prefix?: string; |
| | | suffix?: string; |
| | | } |
| | | export interface CalendarLocaleText { |
| | | title?: string; |
| | | weekdays?: string[]; |
| | | monthTitle?: string; |
| | | months?: string[]; |
| | | confirm?: string; |
| | | } |