-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathcalendar.d.ts
82 lines (70 loc) · 1.97 KB
/
calendar.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { Moment } from "moment";
export declare class Calendar extends AntdComponent {
/**
* Customize the display of the date cell by setting a scoped slot,
* the returned content will be appended to the cell
* @type Function
*/
dateCellRender: (date: Moment) => any;
/**
* Customize the display of the date cell by setting a scoped slot,
* the returned content will override the cell
* @type Function
*/
dateFullCellRender: (date: Moment) => any;
/**
* The date selected by default
* @default default date
* @type Moment
*/
defaultValue: Moment;
/**
* Function that specifies the dates that cannot be selected
* @type Function
*/
disabledDate: (currentDate: Moment) => boolean;
/**
* Whether to display in full-screen
* @default true
* @type boolean
*/
fullscreen: boolean;
/**
* The calendar's locale
* @default [default]
* @type object
* @see https://github.com/vueComponent/ant-design-vue/blob/master/components/date-picker/locale/example.json
*/
locale: object;
/**
* The display mode of the calendar
* @default 'month'
* @type string
*/
mode: "month" | "year";
/**
* Customize the display of the month cell by setting a scoped slot, the returned content will be appended to the cell
* @type Function
*/
monthCellRender: (date: Moment) => any;
/**
* Customize the display of the month cell by setting a scoped slot, the returned content will override the cell
* @type Function
*/
monthFullCellRender: (date: Moment) => any;
/**
* to set valid range
* @type [Moment, Moment]
*/
validRange: [Moment, Moment];
/**
* The current selected date
* @default current date
* @type Moment
*/
value: Moment;
}