大屏组件

This commit is contained in:
yanran200730
2023-05-11 16:35:36 +08:00
parent 1e6c7109f3
commit 09b9b308ff
3 changed files with 27 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="Summary16"> <div class="Summary16">
<div class="Summary16-item" v-for="(item, index) in data" :class="'Summary16-item' + (index + 1)" :key="index" v-if="index < 4"> <div class="Summary16-item" v-for="(item, index) in data" :class="'Summary16-item__' + theme" :key="index" v-if="index < 4">
<h2>{{ item[keys] }}</h2> <h2>{{ item[keys] }}</h2>
<p>{{ item[value] }}</p> <p>{{ item[value] }}</p>
</div> </div>
@@ -25,6 +25,11 @@
value: { value: {
type: String, type: String,
default: 'value' default: 'value'
},
theme: {
type: String,
default: '0'
} }
}, },
@@ -68,13 +73,33 @@
background-size: 122px 80px; background-size: 122px 80px;
background-position: bottom; background-position: bottom;
&.Summary16-item__1 {
background: url(../asset/Summary16-dj.png) no-repeat;
background-position: center 14px;
background-size: 122px 80px;
background-position: bottom;
h2 {
color: #ffffff;
background: none;
}
p {
color: #ffffff;
font-weight: 700;
font-size: 44px;
background: linear-gradient(to bottom, #FFF3D5, #ED9B08);
-webkit-background-clip: text;
color: transparent;
}
}
h2 { h2 {
color: #ffffff; color: #ffffff;
font-size: 18px; font-size: 18px;
background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF); background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF);
-webkit-background-clip: text; -webkit-background-clip: text;
color: transparent; color: transparent;
} }
p { p {