7
7
@click.stop =" tabChang(item.key)"
8
8
:class =" item.key === activeKey?'item_active':'item'"
9
9
>
10
- {{item.label}}
11
- <img class =' icon' v-if =" item.icon || item.activeIcon" :src =" item.key === activeKey?item.activeIcon:item.icon" style =" height :30 rpx;width :30 rpx" />
10
+ {{item.label}}
11
+ <img
12
+ class =' icon' v-if =" item.icon || item.activeIcon"
13
+ :src =" item.key === activeKey?item.activeIcon:item.icon"
14
+ style =" height :30 rpx;width :30 rpx" />
12
15
</KView >
13
16
</KView >
14
17
<kView class =" content" >
@@ -26,7 +29,7 @@ export default Vue.extend({
26
29
data () {
27
30
return {
28
31
tabList: [
29
- { label: ' 最新' , key: ' newest' , icon: ' http://static.gocoder.top/unfold.png' , activeIcon: ' http://static.gocoder.top/unfold_active.png' },
32
+ { label: ' 最新' , key: ' newest' , icon: ' http://static.gocoder.top/unfold.png' , activeIcon: ' http://static.gocoder.top/unfold_active.png' },
30
33
{ label: ' 专栏' , key: ' column' },
31
34
{ label: ' 付费' , key: ' pay' }
32
35
],
@@ -39,7 +42,7 @@ export default Vue.extend({
39
42
},
40
43
title: ' 什么是协程(goroutine),它们是怎样作的呢?,什么是协程(goroutine),它们是怎样作的呢?' ,
41
44
description: ' 这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述' ,
42
- like: true ,
45
+ like: 6 ,
43
46
comments: 10 ,
44
47
id: 12 ,
45
48
cover: ' '
@@ -51,7 +54,7 @@ export default Vue.extend({
51
54
},
52
55
title: ' 什么是协程(goroutine),它们是怎样作的呢?什么是协程(goroutine),它们是怎样作的呢?什么是协程(goroutine),它们是怎样作的呢?' ,
53
56
description: ' 这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述这是描述' ,
54
- like: true ,
57
+ like: 6 ,
55
58
comments: 10 ,
56
59
id: 13 ,
57
60
cover: ' http://img1.3lian.com/gif/more/11/2012/03/d037a77443c0a72a1432d815cd3b5724.jpg'
@@ -65,7 +68,7 @@ export default Vue.extend({
65
68
methods: {
66
69
tabChang (activeKey ) {
67
70
this .activeKey = activeKey
68
- this .$emit (" onChange" , activeKey)
71
+ this .$emit (' onChange' , activeKey)
69
72
}
70
73
}
71
74
})
0 commit comments