大屏组件
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
import Summary15 from './components/Summary15'
|
import Summary15 from './components/Summary15'
|
||||||
import Summary16 from './components/Summary16'
|
import Summary16 from './components/Summary16'
|
||||||
import Summary17 from './components/Summary17'
|
import Summary17 from './components/Summary17'
|
||||||
|
import Summary18 from './components/Summary18'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AiDvSummary',
|
name: 'AiDvSummary',
|
||||||
@@ -45,7 +46,8 @@
|
|||||||
Summary14,
|
Summary14,
|
||||||
Summary15,
|
Summary15,
|
||||||
Summary16,
|
Summary16,
|
||||||
Summary17
|
Summary17,
|
||||||
|
Summary18
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
BIN
components/layout/AiDvSummary/asset/Summary18-dj.png
Normal file
BIN
components/layout/AiDvSummary/asset/Summary18-dj.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
components/layout/AiDvSummary/asset/Summary18.png
Normal file
BIN
components/layout/AiDvSummary/asset/Summary18.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
111
components/layout/AiDvSummary/components/Summary18.vue
Normal file
111
components/layout/AiDvSummary/components/Summary18.vue
Normal 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>
|
||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6'],//边框待选项
|
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6'],//边框待选项
|
||||||
summaryList: ['summary0', 'summary1', 'summary2', 'summary3', 'summary4', 'summary6', 'summary5',
|
summaryList: ['summary0', 'summary1', 'summary2', 'summary3', 'summary4', 'summary6', 'summary5',
|
||||||
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14',
|
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14',
|
||||||
'summary15', 'summary16', 'summary17'],//汇总待选项
|
'summary15', 'summary16', 'summary17', 'summary18'],//汇总待选项
|
||||||
//是否显示排名
|
//是否显示排名
|
||||||
tableStatus: [
|
tableStatus: [
|
||||||
{label: '是', value: '1'},
|
{label: '是', value: '1'},
|
||||||
|
|||||||
Reference in New Issue
Block a user