MerchantStatistic.vue
1.08 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
<template>
<div class="main-box">
<div v-for="(item, index) in dataList" :key="index" class="statistic-box" :style="{ width: 100 / dataList.length + '%' }">
<div class="title">{{ item.name }}</div>
<div class="text">{{ numAddSymbol(item.val) }}</div>
</div>
</div>
</template>
<script>
export default {
name: 'MerchantStatistic',
props: {
dataList: {
type: Array,
default: () => []
}
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.main-box {
display: flex;
}
.statistic-box {
box-shadow: inset 0 0 20px 0 #3d57ff69;
padding: 1.89vh 0.89vw;
margin-right: 1.11vw;
display: flex;
justify-content: space-between;
align-items: center;
&:last-child {
margin-right: 0;
}
.title {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>