sort.vue
1004 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
54
55
56
<template>
<ul class="sort-navs clearfix">
<li class="sort-item active"><span>默认</span></li>
<li class="sort-item">
<span class="sort-name">最新</span>
</li>
<li class="sort-item">
<span class="sort-name">价格</span>
</li>
<li class="sort-item">
<span class="sort-name">折扣</span>
</li>
</ul>
</template>
<script>
module.exports = {
}
</script>
<style>
@import '../../scss/common/color';
.sort-navs {
list-style: none;
margin: 0;
padding: 25px 0;
color: $grey;
}
.sort-item {
position: relative;
display: block;
width: 25%;
float: left;
text-align: center;
&:after {
content: '|';
position: absolute;
right: 0;
color: $grey;
font-size: 28px;
}
&:last-of-type:after {
display: none;
}
.sort-name {
font-size: 28px;
}
&.active {
color: $black;
}
}
</style>