k94314517
2025-07-24 2de8dd1760e97901e821fa32ba51cbdbcc24a070
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
<template>
  <div class="main">
    <div class="plan_wrap">
      <div class="plan" :style="{
        width: `${rate}%`,
        backgroundColor: color
      }"></div>
      <div class="icon" :style="{ backgroundColor: color }"></div>
    </div>
  </div>
</template>
 
<script setup>
const props = defineProps({
  rate: Number,
  color: String
})
</script>
 
<style lang="scss" scoped>
.main {
  width: 100%;
  padding: 4px;
  height: 13px;
 
  .plan_wrap {
    height: 6px;
    width: 100%;
    background-color: #3a474e;
    display: flex;
    align-items: center;
  }
 
  .plan {
    height: 6px;
  }
  .icon{
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 3px solid #fff;
  }
}
</style>