Files
dvcp_v2_webapp/ui/dv/layout/AiDvSummary/components/Summary16.vue
2024-04-12 10:22:47 +08:00

116 lines
2.3 KiB
Vue

<template>
<div class="Summary16">
<div class="Summary16-item" v-for="(item, index) in data" :class="'Summary16-item__' + theme" :key="index" v-if="index < 4">
<h2>{{ item[keys] }}</h2>
<p>{{ item[value] }}</p>
</div>
</div>
</template>
<script>
export default {
name: 'Summary16',
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>
.Summary16 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
width: 100%;
height: 100%;
div {
box-sizing: border-box;
}
.Summary16-item {
display: flex;
position: relative;
align-items: center;
justify-content: space-between;
flex-direction: column;
width: 122px;
height: 132px;
padding-bottom: 44px;
text-align: center;
color: #fff;
font-size: 14px;
background: url(../asset/Summary16.png) no-repeat;
background-position: center 14px;
background-size: 122px 80px;
background-position: bottom;
&.Summary16-item__1 {
background: url(../asset/Summary16-dj.png) no-repeat;
background-position: center 14px;
background-size: 122px 80px;
background-position: bottom;
h2 {
color: #ffffff;
background: none;
}
p {
color: #ffffff;
font-weight: 700;
font-size: 44px;
background: linear-gradient(to bottom, #FFF3D5, #ED9B08);
-webkit-background-clip: text;
color: transparent;
}
}
h2 {
color: #ffffff;
font-size: 18px;
background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF);
-webkit-background-clip: text;
color: transparent;
}
p {
color: #ffffff;
font-weight: 700;
font-size: 44px;
background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF);
-webkit-background-clip: text;
color: transparent;
}
}
}
</style>