We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d13e2c3 commit 3eb1986Copy full SHA for 3eb1986
README.md
@@ -30,6 +30,7 @@ import Vcode from "vue-puzzle-vcode";
30
<Vcode
31
:show="isShow"
32
@onSuccess="onSuccess"
33
+ @onClose="onClose"
34
/>
35
<button @click="onSubmit">登录</button>
36
</template>
@@ -45,9 +46,13 @@ import Vcode from "vue-puzzle-vcode";
45
46
onSubmit(){
47
this.isShow = true;
48
},
49
+ // 用户通过了验证, msg是用户移动拼图的位置和目标位置的偏差px值
50
onSuccess(msg){
- // 用户通过了验证, msg是用户移动拼图的位置和目标位置的偏差px值
51
this.isShow = false; // 通过验证后,需要自行隐藏模态框
52
+ },
53
+ // 用户点击遮罩层,应该关闭模态框
54
+ onClose(){
55
+ this.isShow = false;
56
}
57
58
@@ -95,6 +100,9 @@ export default {
95
100
96
101
</script>
97
102
```
103
+* 也可以是网络图片完整URL路径,但注意图片跨域问题
104
+
105
98
106
### 说明
99
107
108
* 当不传递imgs字段或图片加载出错时,会自动生成随机图片
0 commit comments