60 lines
940 B
Vue
60 lines
940 B
Vue
|
<template>
|
||
|
<div class="border14">
|
||
|
<div class="title">
|
||
|
<slot name="title"></slot>
|
||
|
</div>
|
||
|
<div class="body">
|
||
|
<slot></slot>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang='ts'>
|
||
|
let prop = defineProps({
|
||
|
color: {
|
||
|
type: Array,
|
||
|
default: () => [],
|
||
|
},
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.border14 {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
background: url("../../assets/img/border/border15.svg") no-repeat;
|
||
|
background-size: 100% 100%;
|
||
|
position: relative;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
.title {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 12%;
|
||
|
line-height: 31px;
|
||
|
text-align: center;
|
||
|
font-size: 20px;
|
||
|
color: #fff;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.body {
|
||
|
position: absolute;
|
||
|
top: 12%;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 88%;
|
||
|
background-size: 100% 100%;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
padding: 0 2.5% 2.5% 2.5%;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
</style>
|