大屏标题组件
This commit is contained in:
63
components/layout/AiDvPanel/borders/border9.vue
Normal file
63
components/layout/AiDvPanel/borders/border9.vue
Normal file
@@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<section class="border9" :class="'border9-' + theme">
|
||||
<div class="border9-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: 'border9',
|
||||
|
||||
props: ['title', 'theme']
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.border9 {
|
||||
height: 100%;
|
||||
|
||||
.border9-title {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
padding: 0 23px;
|
||||
box-sizing: border-box;
|
||||
background-image: url(../asset/border9.png);
|
||||
background-size: 100% 40px;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
color: #E2EBF1;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&.border9-1 .border9-title {
|
||||
// background-image: url(../asset/border8.png);
|
||||
// background-position: bottom;
|
||||
|
||||
&:after {
|
||||
background: #FFA086;
|
||||
}
|
||||
}
|
||||
|
||||
.slot {
|
||||
height: calc(100% - 40px);
|
||||
padding-top: 19px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user