大屏组件

This commit is contained in:
yanran200730
2023-05-29 14:44:16 +08:00
parent 9623b426b0
commit 2598239ccd
6 changed files with 81 additions and 28 deletions

View File

@@ -18,10 +18,12 @@ import Border3 from "./borders/border3";
import Border4 from "./borders/border4";
import Border5 from "./borders/border5";
import border6 from "./borders/border6";
import border7 from "./borders/border7";
import border8 from "./borders/border8";
export default {
name: "AiDvPanel",
components: { Border0, Border1, Border2, Border3, Border4, Border5, border6 },
components: { Border0, Border1, Border2, Border3, Border4, Border5, border6, border7, border8 },
props: {
title: {default: "请传入标题"},
border: {default: "border0"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,7 +1,7 @@
<template>
<section class="border7" :class="'border7-' + theme">
<div class="border7-title">
<img src="../asset/ic-badge.png" v-if="theme === '1'" />
<!-- <img src="../asset/ic-badge.png" v-if="theme === '1'" /> -->
<h2>{{ title }}</h2>
</div>
<div class="slot">
@@ -25,22 +25,21 @@ export default {
.border7-title {
display: flex;
position: relative;
height: 40px;
align-items: center;
height: 42px;
// line-height: 26px;
padding: 4px 0 0 22px;
padding: 0 36px;
box-sizing: border-box;
font-family: PingFangSC-Medium, PingFang SC;
background-image: url(../asset/title6.png);
background-image: url(../asset/border7.png);
background-position: bottom;
background-size: 100% 7px;
background-size: 100% 42px;
background-repeat: no-repeat;
h2 {
line-height: 1;
color: #fff;
font-size: 20px;
font-weight: normal;
letter-spacing: 1px;
font-weight: 600;
font-size: 22px;
color: #FFFFFF;
text-shadow: 0 0 8px #006BFF;
}
img {
@@ -48,23 +47,11 @@ export default {
height: 28px;
margin-right: 8px;
}
&:after {
position: absolute;
top: 16px;
left: 0;
z-index: 1;
width: 6px;
height: 6px;
border-radius: 50%;
background: #52575aff;
content: '';
}
}
&.border7-1 .border7-title {
background-image: url(../asset/title-6-dj.png);
background-position: bottom;
// background-image: url(../asset/border7.png);
// background-position: bottom;
&:after {
background: #FFA086;
@@ -72,7 +59,7 @@ export default {
}
.slot {
height: calc(100% - 40px);
height: calc(100% - 42px);
padding-top: 19px;
}
}

View File

@@ -0,0 +1,64 @@
<template>
<section class="border8" :class="'border8-' + theme">
<div class="border8-title">
<!-- <img src="../asset/ic-badge.png" v-if="theme === '1'" /> -->
<h2>{{ title }}</h2>
</div>
<div class="slot">
<slot/>
</div>
</section>
</template>
<script>
export default {
name: 'border8',
props: ['title', 'theme']
}
</script>
<style lang="scss" scoped>
.border8 {
height: 100%;
.border8-title {
display: flex;
position: relative;
align-items: center;
height: 34px;
padding: 0 44px;
box-sizing: border-box;
background-image: url(../asset/border8.png);
background-size: 100% 34px;
background-repeat: no-repeat;
h2 {
font-weight: 600;
font-size: 16px;
color: #FFFFFF;
letter-spacing: 2px;
}
img {
width: 28px;
height: 28px;
margin-right: 8px;
}
}
&.border8-1 .border8-title {
// background-image: url(../asset/border8.png);
// background-position: bottom;
&:after {
background: #FFA086;
}
}
.slot {
height: calc(100% - 34px);
padding-top: 19px;
}
}
</style>

View File

@@ -214,7 +214,7 @@ export default {
data() {
return {
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6'],//边框待选项
borderList: ['border0', 'border1', 'border2', 'border3', 'border4', 'border5', 'border6', 'border7', 'border8'],//边框待选项
summaryList: ['summary0', 'summary1', 'summary2', 'summary3', 'summary4', 'summary6', 'summary5',
'summary7', 'summary8', 'summary9', 'summary10', 'summary11', 'summary12', 'summary13', 'summary14',
'summary15', 'summary16', 'summary17', 'summary18'],//汇总待选项