map-foot.vue
1.3 KB
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
<template>
<div class="map-foot-view">
<div v-for="(item,index) in data" :key="index" class="item-view">
<img :src="index === 0 ? transformer : index === 1 ? stored : index === 2 ? photovoltaic : ''" alt="">
<div class="info-view">
<div class="info-title">{{ item?.value }}</div>
<div class="info-decr">{{ item?.label }} ({{ item?.unit }})</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import transformer from '@/assets/bi/technology/icon-transformer.png'
import stored from '@/assets/bi/technology/icon-stored.png'
import photovoltaic from '@/assets/bi/technology/icon-photovoltaic.png'
const props:any = 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;
align-items: center;
.info-view{
display: flex;
flex-direction: column;
align-items: flex-start;
margin-left: 8px;
.info-title{
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.info-decr{
font-size: 14px;
}
}
}
}
</style>