大屏组件

This commit is contained in:
yanran200730
2023-05-11 16:55:29 +08:00
parent 09b9b308ff
commit 66ee9806cf
3 changed files with 103 additions and 2 deletions

View File

@@ -22,6 +22,7 @@
import Summary14 from './components/Summary14'
import Summary15 from './components/Summary15'
import Summary16 from './components/Summary16'
import Summary17 from './components/Summary17'
export default {
name: 'AiDvSummary',
@@ -43,7 +44,8 @@
Summary13,
Summary14,
Summary15,
Summary16
Summary16,
Summary17
},
props: {

View File

@@ -0,0 +1,99 @@
<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>

View File

@@ -217,7 +217,7 @@ export default {
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6'],//边框待选项
summaryList: ['summary0', 'summary1', 'summary2', 'summary3', 'summary4', 'summary6', 'summary5',
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14',
'summary15', 'summary16'],//汇总待选项
'summary15', 'summary16', 'summary17'],//汇总待选项
//是否显示排名
tableStatus: [
{label: '是', value: '1'},