yc-ui2 0.1.0-beta4 → 0.1.0-beta5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.0-beta4",
3
+ "version": "0.1.0-beta5",
4
4
  "private": false,
5
5
  "description": "测试阶段",
6
6
  "main": "dist/yc-ui2.umd.min.js",
@@ -0,0 +1,60 @@
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>