AreaSaas.vue
929 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
<template>
<div class="area">
<div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">区域分布</span>
</div>
<div class="container">
<BarChart domId="areaChart" boxHeight="12vh" :analysisList="areaList" :colorList="colorList"></BarChart>
</div>
</div>
</template>
<script>
import BarChart from './BarChart.vue'
export default {
name: 'AreaSaas',
components: {
BarChart
},
data() {
return {
colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
}
},
props: {
areaList: {
type: Array,
default: () => []
}
}
}
</script>
<style scoped lang="scss">
.area {
width: 15.83vw;
.title-icon {
font-weight: 500;
font-size: 14px;
color: #ffffff;
// .title-bg {
// background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
// padding-left: 0.83vw;
// }
}
}
</style>