-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathrange-picker.d.ts
60 lines (51 loc) · 1.43 KB
/
range-picker.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
// 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 { DatepickerCommon } from "./common";
import { Moment } from "moment";
export declare class RangePicker extends DatepickerCommon {
/**
* to set default date
* @type [Moment, Moment]
*/
defaultValue: [Moment, Moment];
/**
* to set default picker date
* @type [Moment, Moment]
*/
defaultPickerValue: [Moment, Moment];
/**
* to specify the time that cannot be selected
* @type Function
*/
disabledTime: (dates: [Moment, Moment], partial: "start" | "end") => any;
/**
* to set the date format, refer to moment.js
* @default 'YYYY-MM-DD HH:mm:ss'
* @type string
* @see http://momentjs.com
*/
format: string;
/**
* preseted ranges for quick selection
* @type object
*/
ranges: { [range: string]: Moment[] } | { [range: string]: () => Moment[] };
/**
* render extra footer in panel by setting a scoped slot
* @type any (slot="renderExtraFooter")
*/
renderExtraFooter: any;
/**
* to provide an additional time selection
* showTime.defaultValue to set default time of selected date - type Moment[]
* @default TimePicker Options
* @type object | boolean
*/
showTime: object | boolean;
/**
* to set date
* @type [Moment, Moment]
*/
value: [Moment, Moment];
}