yc-ui2 0.1.0-beta5 → 0.1.0-beta7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/yc-ui2.common.js +33 -452
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.umd.js +33 -452
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/main.js +2 -2
- package/dist/yc-ui2.css +0 -1
- package/src/components/YcSlideVerify/index.vue +0 -60
@@ -1,60 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<slide-verify
|
3
|
-
v-if="show"
|
4
|
-
ref="slideblock"
|
5
|
-
:l="42"
|
6
|
-
:r="10"
|
7
|
-
:w="310"
|
8
|
-
:h="155"
|
9
|
-
:imgs="imgs"
|
10
|
-
:accuracy="accuracy"
|
11
|
-
:show="show"
|
12
|
-
:slider-text="sliderText"
|
13
|
-
@success="onSuccess"
|
14
|
-
@fail="onFail"
|
15
|
-
@again="onAgain"
|
16
|
-
@refresh="onRefresh"
|
17
|
-
@fulfilled="onFulfilled"
|
18
|
-
></slide-verify>
|
19
|
-
</template>
|
20
|
-
|
21
|
-
<script>
|
22
|
-
import SlideVerify from "vue-monoplasty-slide-verify/src/lib/slide-verify.vue"
|
23
|
-
export default {
|
24
|
-
name: "YcSlideVerify",
|
25
|
-
components: {
|
26
|
-
SlideVerify,
|
27
|
-
},
|
28
|
-
data() {
|
29
|
-
return {
|
30
|
-
show: true,
|
31
|
-
isShow: false,
|
32
|
-
accuracy: 5,
|
33
|
-
sliderText: "拖动完成上方拼图",
|
34
|
-
countDownNum: 120,
|
35
|
-
}
|
36
|
-
},
|
37
|
-
computed: {
|
38
|
-
imgs() {
|
39
|
-
const list = []
|
40
|
-
for (let i = 1; i < 9; i++) {
|
41
|
-
list.push(require(`@/assets/slideVerify/${i}.jpg`))
|
42
|
-
}
|
43
|
-
return list
|
44
|
-
},
|
45
|
-
},
|
46
|
-
methods: {
|
47
|
-
onSuccess() {
|
48
|
-
this.isShow = false
|
49
|
-
console.log(344444)
|
50
|
-
},
|
51
|
-
onFail() {},
|
52
|
-
onAgain() {},
|
53
|
-
onRefresh() {},
|
54
|
-
onFulfilled() {},
|
55
|
-
handleClose() {
|
56
|
-
this.isShow = false
|
57
|
-
},
|
58
|
-
},
|
59
|
-
}
|
60
|
-
</script>
|