大屏组件开发

This commit is contained in:
yanran200730
2023-03-08 15:45:56 +08:00
parent 0770065a43
commit 54bcd5979a
10 changed files with 281 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
import Summary9 from './components/Summary9'
import Summary10 from './components/Summary10'
import Summary11 from './components/Summary11'
import Summary12 from './components/Summary12'
export default {
name: 'AiDvSummary',
@@ -33,7 +34,8 @@
Summary8,
Summary9,
Summary10,
Summary11
Summary11,
Summary12
},
props: {

View File

@@ -0,0 +1,76 @@
<template>
<div class="summary12">
<div class="summary12-item" v-for="(item, index) in data" :key="index" v-if="index < 4">
<h2>{{ item[keys] }}</h2>
<p>{{ item[value] }}</p>
</div>
</div>
</template>
<script>
export default {
name: 'summary6',
props: {
data: {
type: Array,
default: () => []
},
keys: {
type: String,
default: 'key'
},
value: {
type: String,
default: 'value'
}
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.summary12 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
width: 100%;
height: 100%;
div {
box-sizing: border-box;
}
.summary12-item {
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
h2 {
line-height: 20px;
margin-bottom: 12px;
color: #C4D8DB;
font-size: 16px;
font-weight: normal;
}
p {
font-size: 44px;
color: #02FEFF;
font-weight: 700;
text-align: left;
}
}
}
</style>