大屏组件

This commit is contained in:
yanran200730
2023-05-11 16:08:49 +08:00
parent 17dc4d48a4
commit 1e6c7109f3
5 changed files with 95 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
import Summary13 from './components/Summary13'
import Summary14 from './components/Summary14'
import Summary15 from './components/Summary15'
import Summary16 from './components/Summary16'
export default {
name: 'AiDvSummary',
@@ -41,7 +42,8 @@
Summary12,
Summary13,
Summary14,
Summary15
Summary15,
Summary16
},
props: {

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -0,0 +1,90 @@
<template>
<div class="Summary16">
<div class="Summary16-item" v-for="(item, index) in data" :class="'Summary16-item' + (index + 1)" :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'
}
},
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;
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>