index.vue
770 Bytes
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
<template>
<div class="mine-statistic">
<div class="mine-statistic__content">
<span class="text-danger num mr10">{{content}}</span>
<span>{{unit}}</span>
</div>
<div class="mine-statistic__head">{{title}}</div>
</div>
</template>
<script setup lang="ts">
let props = defineProps({
title: {
default: "",
type: String
},
content: {
default: "",
type: String
},
unit: {
default: "",
type: String
}
})
</script>
<style scoped lang="scss">
.mine-statistic {
text-align: center;
.mine-statistic__content {
font-size: 14px;
.num{
font-size: 20px;
}
}
.mine-statistic__head {
color: #606266;
font-size: 12px;
}
}
</style>