Group.vue
950 Bytes
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
<template>
<div class="group-layout-wrap">
<time-search></time-search>
<statistics></statistics>
<ranking></ranking>
<canvas-tab :list="tab" @change="change">
<tab-container ref="tabContainer" :tabType="tabType"></tab-container>
</canvas-tab>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'Group',
props: {
keyword: {
type: String,
default: ''
},
placeholder: {
type: String,
default: '请输入内容搜索'
}
},
data() {
return {
value: this.keyword
}
},
mounted() {},
methods: {
onSearch(e) {
this.$emit('search', e)
}
}
}
</script>
<style scoped lang='scss'>
.van-search {
padding: 9px 16px;
height: 50px;
background: #fff;
.van-search__content {
background-color: #fff;
border: 1px solid #cdd1d4;
border-radius: 16px;
}
.van-cell {
padding: 5px 16px 5px 0;
}
}
</style>