You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This value will be used to generate the date cells at beginning. Its default value is `new Date()`.
50
+
51
+
#### `selectType`
52
+
53
+
The selection type of the calendar, currently support `'single' | 'multiple'`. Its default value is `'single'`.
54
+
55
+
> This option must be set if you don't want to use `single` type.
56
+
57
+
#### `value`
58
+
59
+
Set it up to get the full control of the calendar. For `'single'` selection type, the type of this value should be `Date`. For `'multiple'` selection type, the type of this value should be `Date[]`.
60
+
61
+
#### `onChange`
62
+
63
+
```ts
64
+
typeOnChange: (value: Date|Date[]) => void
65
+
```
66
+
67
+
For `single` selection type, the `value` is a `Date` instance. For `multiple` selection type, the `value` is an array of `Date` instances.
68
+
69
+
### Returns
70
+
71
+
#### `selectedDates`
72
+
73
+
An array contains the `Date` instances of all selected date.
74
+
75
+
#### `displayedYear`
76
+
77
+
The year of the calendar which should be rendered.
78
+
79
+
#### `displayedMonth`
80
+
81
+
The month of the calendar which should be rendered.
82
+
83
+
#### `changeDisplayedYear`
84
+
85
+
Call this function to add a value to `displayedYear`.
86
+
87
+
#### `changeDisplayedMonth`
88
+
89
+
Call this function to add a value to `displayedMonth`.
0 commit comments