progress.vue
1.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template>
<div>
<van-steps direction="vertical" active-icon="circle" inactive-color="#106ABC" :active="0">
<!-- <template > -->
<van-icon slot="active-icon" name="circle" />
<!-- </template> -->
<van-step v-for="stepItem in stepsInfo" :key="stepItem.id">
<div class="step_content">
<span class="step_left">
<h3 class="step_title">{{stepItem.title}}</h3>
<a href="" class="step_link" v-if="stepItem.link">{{stepItem.link}}</a>
<div class="step_action" v-if="stepItem.expand"></div>
</span>
<span class="step_right">{{stepItem.time}}</span>
</div>
</van-step>
</van-steps>
</div>
</template>
<script>
export default {
data() {
return {
}
},
props: {
stepsInfo: {
type: Object,
default: ()=> {
return {}
}
}
}
}
</script>
<style lang="less" scoped>
::v-deep .van-step:last-child .van-step__line {
border: none;
}
::v-deep .van-step__line {
border-left: 0.5px dotted #106abc;
background-color: transparent;
}
::v-deep .van-step__circle {
background-color: #106abc;
}
::v-deep .van-hairline::after {
border: none;
}
::v-deep .van-step__icon--active {
color: #106abc;
}
.step_content {
display: flex;
justify-content: space-between;
.step_left {
.step_title {
font-size: 15px;
color: #333333;
line-height: 21px;
}
.step_link {
font-size: 12px;
line-height: 17px;
color: #388de2;
text-decoration: underline;
}
}
.step_right {
font-size: 12px;
color: #666666;
line-height: 17px;
}
}
</style>