-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathcommon.d.ts
89 lines (75 loc) · 1.87 KB
/
common.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
83
84
85
86
87
88
89
// 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 DatepickerCommon extends AntdComponent {
/**
* Whether to show clear button
* @default true
* @type boolean
*/
allowClear: boolean;
/**
* get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* custom rendering function for date cells by setting a scoped slot
* @type any (slot="dateRender" slot-scope="current, today")
*/
dateRender: any;
/**
* determine whether the DatePicker is disabled
* @default false
* @type boolean
*/
disabled: boolean;
/**
* specify the date that cannot be selected
* @type Function
*/
disabledDate: (currentDate: Moment) => boolean;
/**
* to set the container of the floating layer, while the default is to create a div element in body
* @type Function
*/
getCalendarContainer: (trigger: any) => any;
/**
* localization configuration
* @type any
*/
locale: any;
/**
* open state of picker
* @type boolean
*/
open: boolean;
/**
* placeholder of date input
* @type string | string[]
*/
placeholder: string | string[];
/**
* to customize the style of the popup calendar
* @type object
*/
popupStyle: object;
/**
* to customize the className of the popup calendar
* @type string
*/
dropdownClassName: string;
/**
* determine the size of the input box, the height of large and small, are 40px and 24px respectively, while default size is 32px
* @type string
*/
size: "large" | "small" | "default";
/**
* The custom suffix icon
* @type any (VNode | slot)
*/
suffixIcon: any;
}