-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.vue
75 lines (73 loc) · 1.58 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!--
* @Author: wyj
* @Date: 2019-11-12 22:12:13
* @LastEditors: wyj
* @LastEditTime: 2019-11-18 14:26:56
* @Description:
-->
<script>
import VueTabsSwiper from "./app/index.js"
import HotSpot from "./dem/hot-spot"
import Found from "./dem/found"
import Concern from "./dem/concern"
export default {
components: {
VueTabsSwiper,
HotSpot,
Found,
Concern
},
data() {
return {
value: 1
}
},
render() {
return (
<div>
<vue-tabs-swiper
v-model="value"
ref="tabsSwiper"
tab-font-weight="bold"
tab-color="#484848"
tab-active-color="#3189F4"
>
<hot-spot tab-label="热点" />
<Found tab-label="发现" />
<Concern tab-label="关注" />
</vue-tabs-swiper>
</div>
)
}
}
</script>
<!--
<template>
<div>
<vue-tabs-swiper @change="test">
<hot-spot tab-label="热点" />
<Found tab-label="发现" />
<Concern tab-label="关注" />
</vue-tabs-swiper>
</div>
</template>
<script>
import VueTabsSwiper from "./app/index.js"
import HotSpot from "./dem/hot-spot"
import Found from "./dem/found"
import Concern from "./dem/concern"
export default {
components: {
VueTabsSwiper,
HotSpot,
Found,
Concern
},
methods: {
test(val) {
console.log(val)
}
}
}
</script>
-->