element/types/slider.d.ts

69 lines
1.4 KiB
TypeScript
Raw Normal View History

2019-04-19 16:02:01 +08:00
import { VNode } from 'vue';
import { ElementUIComponent } from './component'
2017-10-18 18:31:03 +08:00
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
2017-10-18 18:31:03 +08:00
/** Format of displayed tooltip value */
formatTooltip: SliderTooltipFormat
/** Whether to display control buttons when show-input is true */
showInputControls: boolean
2018-03-14 10:52:44 +08:00
/** 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
2017-10-18 18:31:03 +08:00
/** 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
2018-03-01 17:21:31 +08:00
/** Custom class name for the tooltip */
tooltipClass: string
2019-04-19 16:02:01 +08:00
/** Custom marks */
marks: {
[key: number]: string | { style: object; label: string | VNode }
}
}