跳转到内容

vw-slide

滑动条组件用来快速调节设置值,如音量、亮度、色彩饱和度等. 用户通过点击左侧/右侧按钮的方式增加/降低数值.

名称类型默认值必填描述
type<string>’normal’类型,普通(normal)和栅格(grid)
value<number>-当前进度数值
maxValue<number>-数值范围的最大值
minValue<number>-数值范围的最小值
step<number>-步数间距
focusing<boolean>-是否处于聚焦状态
名称参数描述
touchstart请参考通用事件中的 TouchEvent手指刚触摸组件时触发
touchmove请参考通用事件中的 TouchEvent手指触摸后移动时触发
touchend请参考通用事件中的 TouchEvent手指触摸动作结束时触发
touchcancel请参考通用事件中的 TouchEvent手指触摸动作被打断时触发
<vw-slide
style="margin-top:20px"
type="normal"
value="{{valueA}}"
min-value="45"
max-value="255"
step="42"
focusing="{{true}}"
ontouchstart="onStartA"
ontouchend="onEnd"
ontouchmove="onEnd"
ontouchcancel="onEnd"
></vw-slide>