slider.d.ts
1.32 KB
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
import { ElementUIComponent } from './component'
export interface SliderTooltipFormat {
/**
* Format the displayed value of Slider
*
* @param value Value of the Slider
* @returns formatted value
*/
(value: number): string
}
/** Slider Component */
export declare class ElSlider extends ElementUIComponent {
/** Current value of the slider */
value: number | number[]
/** Minimum value */
min: number
/** Maximum value */
max: number
/** Whether Slider is disabled */
disabled: boolean
/** Step size */
step: number
/** Whether to display an input box, works when range is false */
showInput: boolean
/** Format of displayed tooltip value */
formatTooltip: SliderTooltipFormat
/** Whether to display control buttons when show-input is true */
showInputControls: boolean
/** Size of the input box */
inputSize: string
/** Whether to display breakpoints */
showStops: boolean
/** Whether to display tooltip value */
showTooltip: boolean
/** Whether to select a range */
range: boolean
/** Vertical mode */
vertical: boolean
/** Slider height, required in vertical mode */
height: boolean
/** Debounce delay when typing, in milliseconds, works when show-input is true */
debounce: number
/** Custom class name for the tooltip */
tooltipClass: string
}