移风店大屏前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.5 KiB

2 years ago
<template>
<div class="map-header">
<div class="flex">
<div class="item" v-for="(item, index) in data" :key="index">
2 years ago
<div class="name">{{ item.name }}</div>
<section>
<span :class="{ 'num': true, 'yellow': index === 4 }">{{ item.num }}</span>
<span :class="{'units':true, 'yellow': index === 4 }">{{item.units }}</span>
</section>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
};
},
props:{
data:{
type:Array,
default:()=>[]
}
},
2 years ago
created() { },
methods: {},
components: {},
computed: {},
watch: {},
}
</script>
<style lang="scss" scoped>
.flex {
2 years ago
@include flex();
2 years ago
width: 100%;
justify-content: space-around;
.item {
2 years ago
@include flex(column);
2 years ago
section {
margin-top: 13px;
}
.name {
font-size: 20px;
color: #ACBBD4;
}
.num {
font-family: lihei;
font-size: 26px;
color: #FFFFFF;
font-style: italic;
text-shadow: 0 0 10px #fff;
}
.units {
font-size: 16px;
color: #869DB8;
margin-left: 5px;
}
.yellow {
color: #FFC486;
text-shadow: 0 0 10px #FFC486;
}
}
}
</style>