yc-ui2 0.1.0-beta6 → 0.1.0-beta8
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
- package/src/packages/index.js +0 -23
@@ -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>
|
package/src/packages/index.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import YcSlideVerify from 'comp/YcSlideVerify/index.vue'
|
2
|
-
|
3
|
-
|
4
|
-
const components = [
|
5
|
-
YcSlideVerify
|
6
|
-
]
|
7
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
8
|
-
const install = function (Vue) {
|
9
|
-
// 遍历注册全局组件
|
10
|
-
components.forEach(component => {
|
11
|
-
Vue.component(component.name, component)
|
12
|
-
})
|
13
|
-
|
14
|
-
// 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
|
15
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
16
|
-
install(window.Vue)
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
21
|
-
export default {
|
22
|
-
install
|
23
|
-
}
|