大屏组件

This commit is contained in:
yanran200730
2023-05-11 17:09:31 +08:00
parent 66ee9806cf
commit 81d4c7c174
5 changed files with 115 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
import Summary15 from './components/Summary15'
import Summary16 from './components/Summary16'
import Summary17 from './components/Summary17'
import Summary18 from './components/Summary18'
export default {
name: 'AiDvSummary',
@@ -45,7 +46,8 @@
Summary14,
Summary15,
Summary16,
Summary17
Summary17,
Summary18
},
props: {

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

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