longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
<template>
  <div class="label-box">{{ value }} {{ unit }}</div>
</template>
 
<script>
export default {
  props: {
    value: {
      type: [String, Number],
      default: 0,
    },
    unit: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
};
</script>
 
<style scoped>
.label-box {
  display: inline-block;
  border: 1px solid #00feff;
  padding: 2px 12px;
  font-size: 14px;
  color: #f7bd45;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
</style>