Skip to content
On this page

基本使用

html
<uvSliderVertify />

props

属性含义类型默认值
widthcanvas宽度Number320
heightcanvas高度Number160
visible是否可见Booleantrue
refreshIcon刷新icon地址String'http://cdn.dooring.cn/dr/icon12.png'
l滑块边长Number42
r滑块半径Number9
imgUrl图片地址String''
text文字String''
onDraw拖拽滑块时的回调, 参数为当前滑块拖拽的距离Function(l) => {}
onCustomVertify用户的自定义验证逻辑Function(VertifyType) => VertifyType
onBeforeRefresh重制刷新前的回调Function() => {}
onSuccess验证成功回调Function() => {}
onFail验证失败回调Function() => {}
onRefresh刷新时回调Function() => {}

css变量

css

Released under the MIT License.