UNPKG

1.4 kBTypeScriptView Raw
1import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component'
2
3export interface TimePickerOptions {
4 /**
5 * Available time range.
6 * e.g. `'18:30:00 - 20:30:00'`
7 * or `['09:30:00 - 12:00:00', '14:30:00 - 18:30:00']`
8 */
9 selectableRange?: string | string[],
10
11 /** Format of the picker */
12 format?: string
13}
14
15/** TimePicker Component */
16export declare class ElTimePicker extends ElementUIComponent {
17 /** Whether DatePicker is read only */
18 readonly: boolean
19
20 /** Whether DatePicker is disabled */
21 disabled: boolean
22
23 /** Whether the input is editable */
24 editable: boolean
25
26 /** Whether to show clear button */
27 clearable: boolean
28
29 /** Size of Input */
30 size: ElementUIComponentSize
31
32 /** Placeholder */
33 placeholder: string
34
35 /** Placeholder for the start time in range mode */
36 startPlaceholder: string
37
38 /** Placeholder for the end time in range mode */
39 endPlaceholder: string
40
41 /** Whether to pick a time range */
42 isRange: boolean
43
44 /** Value of the picker */
45 value: string | Date
46
47 /** Alignment */
48 align: ElementUIHorizontalAlignment
49
50 /** Custom class name for TimePicker's dropdown */
51 popperClass: string
52
53 /** Additional options, check the table below */
54 pickerOptions: TimePickerOptions
55
56 /** Range separator */
57 rangeSeparator: string
58
59 /**
60 * Focus the Input component
61 */
62 focus (): void
63}