map-foot.vue
916 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<div class="map-foot-view">
<div v-for="(item,index) in data" :key="index" class="item-view">
<div class="title">
{{ item.value }}
</div>
<div class="decr">
{{ item.label }}
<span>({{item.unit}})</span>
</div>
</div>
</div>
</template>
<script setup lang="ts">
defineProps({
data: {
type: Array,
default: () => {
return [{
label: '',
value: '',
unit: ''
}]
}
}
})
</script>
<style lang="less" scoped>
.map-foot-view{
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
.item-view{
display: flex;
flex-direction: column;
align-items: flex-start;
.title{
font-size: 32px;
font-weight: bold;
margin-bottom: 10px;
}
.decr{
font-size: 20px;
span{
font-size: 18px;
}
}
}
}
</style>