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