whyczyk
2021-05-20 7d36b01cf3981ed86c7bcb89e8ea020c22aae1cc
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
<template>
  <div class="sectionProcess">
    <div class="tipsText">
      {{title}}
    </div>
    <div class="tips"></div>
    <div class="left">{{leftText}}</div>
    <div class="right">{{rightText}}</div>
  </div>
</template>
 
<script>
  export default {
    props: ['title', 'leftText', 'rightText'],
    data() {
      return {
 
      }
    },
  }
</script>
 
<style scoped>
  .sectionProcess {
    width: 100%;
    height: 12px;
    border-radius: 4px;
    background-color: #ffe328;
    position: relative;
  }
 
  .sectionProcess .tips {
    position: absolute;
    border-top: 10px #ffe328 solid;
    border-left: 10px transparent dashed;
    border-bottom: 10px transparent dashed;
    border-right: 10px transparent dashed;
    left: calc(50% - 10px);
    top: -12px;
    /*覆盖并错开1px*/
    border-top: 10px #ffe328 solid;
  }
 
  .sectionProcess .tipsText {
    font-size: 10px;
    color: #ffffff;
    top: -36px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
 
  .sectionProcess .left {
    width: 12%;
    height: 12px;
    border-radius: 4px 0 0 4px;
    position: absolute;
    left: 38%;
    background-color: #666ee8;
    line-height: 44px;
    text-align: center;
  }
 
  .sectionProcess .right {
    width: 12%;
    height: 12px;
    border-radius: 0 4px 4px 0;
    position: absolute;
    left: 50%;
    background-color: #f78989;
    line-height: 44px;
    text-align: center;
  }
</style>