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
| <template>
| <div class="cpn_list">
| <div class="cpn_item" v-for="ite,i in 25" :class="{
| yellow: rate > i,
| gre: rate > i && color == 'cyan'
| }"></div>
| </div>
| </template>
|
| <script setup>
| const props = defineProps({
| rate: Number,
| color: String
| })
| </script>
|
| <style lang="scss" scoped>
| .cpn_list{
| display: flex;
| align-items: center;
| height: 100%;
| width: 100%;
| padding: 0 6px;
| justify-content: space-between;
| .cpn_item{
| width: 2.4%;
| height: 8px;
| background-color: rgba(255,255,255,0.3);
| }
| .yellow{
| background-color: #FEAF01;
| }
| .gre{
| background-color: #01D9FE;
| }
| }
| </style>
|
|