riku
2025-07-04 d6e6f8b5b31e132e4597eb531168d3e88f3bda72
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
<template>
  <el-row justify="start" class="wrap">
    <el-col :span="6">
      <el-space direction="vertical" :size="0">
        <font-awesome-icon v-if="faIcon" :icon="faIcon" class="fa-icon-size" />
        <component v-if="elIcon" class="el-icon-size" :is="elIcon"></component>
        <img v-if="img" :src="img" class="icon-size" />
        <el-text class="factor-text">{{ label }}</el-text>
      </el-space>
    </el-col>
    <el-col :span="18">
      <el-space direction="vertical" :size="0">
        <div>
          <el-text class="factor-number">{{ value }}</el-text>
          <el-text class="factor-unit"
            ><sub>{{ unit }}</sub></el-text
          >
        </div>
        <el-text class="factor-text">{{ des }}</el-text>
      </el-space>
      <!-- <div >
        <el-text class="factor-number">{{ value }}</el-text>
        <el-text class="factor-unit"
          ><sub>{{ unit }}</sub></el-text
        >
      </div> -->
    </el-col>
  </el-row>
</template>
<script setup>
defineProps({
  faIcon: String,
  elIcon: String,
  img: String,
  svg: String,
  label: String,
  value: String || Number,
  unit: String,
  des: String
});
</script>
<style scoped>
.wrap {
  /* border: 1px solid white; */
  width: 120px;
}
.factor-text {
  color: whitesmoke;
  font-size: 9px;
}
.factor-number {
  color: whitesmoke;
  font-size: 20px;
  line-height: 30px;
  padding-left: 2px;
}
.factor-unit {
  color: whitesmoke;
  font-size: 12px;
  margin-left: 2px;
}
 
.fa-icon-size {
  width: 26px;
  height: 26px;
  padding: 2px;
}
.el-icon-size {
  width: 30px;
  height: 30px;
}
</style>