Files
dvcp_v2_webapp/components/layout/AiDvSummary/components/Summary17.vue
yanran200730 66ee9806cf 大屏组件
2023-05-11 16:55:34 +08:00

100 lines
1.7 KiB
Vue

<template>
<div class="Summary17">
<div class="Summary17-item" v-for="(item, index) in data" :class="'Summary17-item__' + theme" :key="index" v-if="index < 4">
<p>{{ item[value] }}</p>
<h2>{{ item[keys] }}</h2>
</div>
</div>
</template>
<script>
export default {
name: 'Summary17',
props: {
data: {
type: Array,
default: () => []
},
keys: {
type: String,
default: 'key'
},
value: {
type: String,
default: 'value'
},
theme: {
type: String,
default: '0'
}
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.Summary17 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
width: 100%;
height: 100%;
div {
box-sizing: border-box;
}
.Summary17-item {
display: flex;
position: relative;
align-items: center;
justify-content: center;
flex-direction: column;
width: 126px;
height: 139px;
text-align: center;
color: #fff;
font-size: 14px;
background: url(../asset/Summary17.png) no-repeat center;
background-size: 126px 139px;
&.Summary17-item__1 {
background: url(../asset/Summary17-dj.png) no-repeat center;
background-size: 126px 139px;
h2 {
}
p {
color: #FFDC64;
}
}
h2 {
margin-top: 30px;
color: #ffffff;
font-weight: normal;
font-size: 14px;
}
p {
font-weight: 700;
font-size: 30px;
color: #66FFFF;
}
}
}
</style>