大屏组件开发
This commit is contained in:
53
components/layout/AiDvPanel/borders/border6.vue
Normal file
53
components/layout/AiDvPanel/borders/border6.vue
Normal 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>
|
||||
Reference in New Issue
Block a user