大屏组件开发

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

@@ -0,0 +1,53 @@
<template>
<section class="border6">
<h2>{{ title }}</h2>
<div class="slot">
<slot/>
</div>
</section>
</template>
<script>
export default {
name: 'border6',
props: {
title: String
}
}
</script>
<style lang="scss" scoped>
.border6 {
height: 100%;
h2 {
position: relative;
height: 40px;
line-height: 26px;
padding: 4px 0 0 22px;
color: #fff;
font-size: 22px;
background-image: url(../asset/title6.png);
background-position: bottom;
background-size: 100% 7px;
background-repeat: no-repeat;
&:after {
position: absolute;
top: 16px;
left: 0;
z-index: 1;
width: 6px;
height: 6px;
border-radius: 50%;
background: #52575aff;
content: '';
}
}
.slot {
height: calc(100% - 40px);
padding-top: 19px;
}
}
</style>