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
| <template>
| <ul class="left-list">
| <li
| v-for="(item, index) in list"
| :class="{active: tabIndex === index}"
| :key="index"
| @click="$emit('changeTab', index)"
| >
| <a>{{item.tabname}}</a>
| </li>
| </ul>
| </template>
| <script>
| /**
| * 贷款申请查询详情页-左侧导航
| */
| export default {
| props: {
| list: {
| type: Array,
| default: () => []
| },
| tabIndex: {
| type: Number,
| default: 0
| }
| }
| }
| </script>
|
| <style lang="postcss" scoped>
| .left-list {
| list-style: none;
| font-size: 14px;
| & li {
| border-right: solid 2px #e1e1e1;
| text-align: right;
| padding: 10px 20px 10px 0;
| & a {
| cursor: pointer;
| color: #303133;
| &:hover {
| color: #409eff;
| }
| }
|
| &.active {
| border-right: solid 2px #409eff;
| & a {
| color: #409eff;
| }
| }
| }
| }
| </style>
|
|