1.0.7-rc.9 • Published 3 years ago

vue3-swipe-verify v1.0.7-rc.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Quick Start

1. Import vue3-swipe-verify into your vue3 project.

npm install --save-dev vue3-swipe-verify

全局注册

import sv from "vue3-swipe-verify";
import "vue3-swipe-verify/dist/style.css";
const app = createApp(App);
app.use(sv);

按需引入

import { SwipeVerify } from "vue3-swipe-verify";
import "vue3-swipe-verify/dist/style.css";

argument

ParamTypeDescribeVersion
lNumber滑块长度
rNumber滑块圆角
wNumbercanvas width
hNumbercanvas height
swiperTextStringSwipe filled right
imgsArraypicture array 背景图数组,默认值 []
accuracyNumber滑动验证的误差范围,默认值 5
showBoolean是否显示刷新按钮,默认值 true
intervalNumber节流函数的时间间隔,默认值 501.1.2

callBack

EventTypeDescribeVersion
successFunctionsuccess callback返回时间参数,单位为毫秒
failFunctionfail callback
refreshFunction点击刷新按钮后的回调函数
againFunction检测到非人为操作滑动时触发的回调函数
1.0.7-rc.9

3 years ago

1.0.7-rc.8

3 years ago

1.0.7-rc.7

3 years ago

1.0.7-rc.6

3 years ago

1.0.7-rc.5

3 years ago

1.0.7-rc.4

3 years ago

1.0.7-rc.3

3 years ago

1.0.7-rc.2

3 years ago

1.0.7-rc.1

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago