1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import CommonProps from '../util';
|
5 |
|
6 | interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
7 | defaultValue?: any;
|
8 | onSelect?: any;
|
9 | }
|
10 |
|
11 | export interface CalendarProps extends HTMLAttributesWeak, CommonProps {
|
12 | |
13 |
|
14 |
|
15 | defaultValue?: any;
|
16 |
|
17 | |
18 |
|
19 |
|
20 | value?: any;
|
21 |
|
22 | |
23 |
|
24 |
|
25 | showOtherMonth?: boolean;
|
26 |
|
27 | |
28 |
|
29 |
|
30 | defaultVisibleMonth?: () => void;
|
31 |
|
32 | |
33 |
|
34 |
|
35 | shape?: 'card' | 'fullscreen' | 'panel';
|
36 |
|
37 | |
38 |
|
39 |
|
40 | onSelect?: (value: {}) => void;
|
41 |
|
42 | |
43 |
|
44 |
|
45 | onVisibleMonthChange?: (value: {}, reason: string) => void;
|
46 |
|
47 | |
48 |
|
49 |
|
50 | className?: string;
|
51 |
|
52 | |
53 |
|
54 |
|
55 | dateCellRender?: (value: {}) => React.ReactNode;
|
56 |
|
57 | |
58 |
|
59 |
|
60 | monthCellRender?: (calendarDate: {}) => React.ReactNode;
|
61 |
|
62 | |
63 |
|
64 |
|
65 | disabledDate?: (calendarDate: {}, view: string) => boolean;
|
66 | }
|
67 |
|
68 | export default class Calendar extends React.Component<CalendarProps, any> {}
|