滑块

基本

sliderValue: 50
<vnt-slider v-model="sliderValue"></vnt-slider>

禁用

sliderValue: 50
<vnt-slider v-model="sliderValue" disabled></vnt-slider>

自定义标签

<vnt-slider v-model="sliderValue">Custom label</vnt-slider>

范围

sliderValue: 3
<vnt-slider v-model="sliderValue" min="-10" max="10"></vnt-slider>

配置

除了下列组件属性外,<input type="range" /> 的 HTML 标准属性(如 step)也适用。

disabled

默认值:false

确定滑块是否应为禁用模式。

label

默认值:'Slider'

滑块的标签文本。

min

默认值:0

最小值。

max

默认值:100

最大值。

value

默认值:50

设置滑块的值。