@@ -85,7 +85,7 @@ export default {
85
85
86
86
| Event | Type | Describe | Version |
87
87
| :------: | :------: | :------: | :-----: |
88
- | success | Function | success callback | |
88
+ | success | Function | success callback | 返回时间参数,单位为毫秒 |
89
89
| fail | Function | fail callback | |
90
90
| refresh | Function | 点击刷新按钮后的回调函数 | |
91
91
| again | Function | 检测到非人为操作滑动时触发的回调函数 | 1.1.1 |
@@ -95,7 +95,12 @@ export default {
95
95
### 国内镜像地址 [ gitee镜像地址] ( https://gitee.com/monoplasty/vue-monoplasty-slide-verify )
96
96
97
97
### 更新记录
98
- #### V1.1.1 描述
98
+ #### V1.1.3 描述
99
+ - 解决IE 9 - 10 滑块显示bug,感谢大神 [ @Guosugaz ] ( https://github.com/Guosugaz ) 修复此bug 🎉 [ issue #26 ] ( https://github.com/monoplasty/vue-monoplasty-slide-verify/issues/26 )
100
+ - 修复 滑块成功后依然能滑动bug
101
+ - 优化 图片未加载完成之前加载遮罩层
102
+ - 增加滑动成功后的时间显示。单位毫秒。[ issue #24 ] ( https://github.com/monoplasty/vue-monoplasty-slide-verify/issues/24 )
103
+ #### V1.1.1 描述(此版本有bug,请使用最新版)
99
104
- ` accuracy ` 精度设置
100
105
> 判断滑块与凹槽位置的误差范围值,默认取值范围为 [ 1, 10] 。若取值不为 -1,则会开启检测非人为操作。人为操作也有可能会触发哦!
101
106
>
@@ -120,7 +125,7 @@ this.$refs.slideblock.reset();
120
125
## Log
121
126
### V1.1.2
122
127
1 . 修复` imgs ` 不传时,页面的 warning 问题
123
- ### V1.1.1
128
+ ### V1.1.1 (此版本有bug,请使用最新版)
124
129
1 . 增加** 滑动验证的精度设置**
125
130
2 . 增加** 滑块刷新成功后的回调函数**
126
131
3 . 可配置刷新按钮的显示
@@ -153,9 +158,9 @@ this.$refs.slideblock.reset();
153
158
}
154
159
},
155
160
methods: {
156
- onSuccess (){
157
- console .log (' 验证通过' );
158
- this .msg = ' login success'
161
+ onSuccess (times ){
162
+ console .log (' 验证通过,耗时 + ' times + ' 毫秒 ' );
163
+ this .msg = ' login success, 耗时${(times / 1000).toFixed(1)}s '
159
164
},
160
165
onFail (){
161
166
console .log (' 验证不通过' );
0 commit comments