search-tabs.vue
1.11 KB
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
<template>
<view class="search-tabs">
<view class="search-tabs__left">
<view v-for="(index,item) in list" :key="index">{{item.name}}</view>
</view>
<view slot="right" class="search-tabs__rigth" @click="filterChange">
<image class="img" :src="formatImagePath('search')" />
</view>
</view>
</template>
<script>
export default {
props: {
value: String,
list: Array,
},
data: function() {
return {
};
},
watch: {
},
methods: {
filterChange() {
this.$u.toast('插槽被点击')
}
}
}
</script>
<style lang="scss">
.search-tabs {
.search-tabs{
.u-tabs {
.u-tabs__wrapper__nav__item.data-v-48634e29 {
width: 158upx !important;
height: 58upx;
background: #F6F8FB;
border-radius: 8upx;
}
}
&__rigth {
width: 102upx;
height: 90upx;
padding-right: 20upx;
display: flex;
justify-content: center;
align-items: center;
box-shadow: -20upx 0 10upx -10upx rgba(51,51,51,0.1);
.img {
width: 32upx;
height: 34upx;
}
}
}
}
</style>