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
| <template>
| <div class="strip-box">
| <div class="strip-box-title">
| <title-icon size="mini"></title-icon>
| <span>{{ title }}</span>
| </div>
| <div class="strip-box-value">
| <label-box :value="value" :unit="unit"></label-box>
| </div>
| </div>
| </template>
|
| <script>
| import TitleIcon from "@/components/title-icon.vue";
| import labelBox from "./label-box.vue";
| export default {
| components: {
| labelBox,
| TitleIcon,
| },
| props: {
| title: {
| type: String,
| default: "名称",
| },
| value: {
| type: [String, Number],
| default: 0,
| },
| unit: {
| type: String,
| default: "",
| },
| },
| data() {
| return {};
| },
| };
| </script>
|
| <style scoped>
| .strip-box {
| display: flex;
| background-color: #4ba1fa20;
| box-sizing: border-box;
| padding: 8px 32px 8px 16px;
| }
| .strip-box-title {
| flex: 1;
| text-align: left;
| }
| .strip-box-title > span {
| font-size: 14px;
| color: #01ffff;
| }
| </style>
|
|