UNPKG

1.35 kBTypeScriptView Raw
1import { ElementUIComponent } from './component'
2
3export interface SliderTooltipFormat {
4 /**
5 * Format the displayed value of Slider
6 *
7 * @param value Value of the Slider
8 * @returns formatted value
9 */
10 (value: number): string
11}
12
13/** Slider Component */
14export declare class ElSlider extends ElementUIComponent {
15 /** Current value of the slider */
16 value: number | number[]
17
18 /** Minimum value */
19 min: number
20
21 /** Maximum value */
22 max: number
23
24 /** Whether Slider is disabled */
25 disabled: boolean
26
27 /** Step size */
28 step: number
29
30 /** Whether to display an input box, works when range is false */
31 showInput: boolean
32
33 /** Format of displayed tooltip value */
34 formatTooltip: SliderTooltipFormat
35
36 /** Whether to display control buttons when show-input is true */
37 showInputControls: boolean
38
39 /** Size of the input box */
40 inputSize: string
41
42 /** Whether to display breakpoints */
43 showStops: boolean
44
45 /** Whether to display tooltip value */
46 showTooltip: boolean
47
48 /** Whether to select a range */
49 range: boolean
50
51 /** Vertical mode */
52 vertical: boolean
53
54 /** Slider height, required in vertical mode */
55 height: boolean
56
57 /** Debounce delay when typing, in milliseconds, works when show-input is true */
58 debounce: number
59
60 /** Custom class name for the tooltip */
61 tooltipClass: string
62}