<template>
|
<div class="table-wrapper h500">
|
<div class="table-wrapper-corner top-right"></div>
|
<div class="table-wrapper-corner bottom-right"></div>
|
<div class="table-wrapper-header">
|
<span class="title-icon">
|
<span class="title-icon-content"></span>
|
</span>
|
{{title}}
|
</div>
|
<div class="table-wrapper-content">
|
<slot></slot>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: "TableWrapper",
|
props: {
|
title: {
|
type: String,
|
default: ""
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
|
.table-wrapper {
|
position: relative;
|
display: flex;
|
flex-direction: column;
|
}
|
.table-wrapper-content {
|
flex: 1;
|
}
|
.table-wrapper:before,
|
.table-wrapper:after,
|
.table-wrapper-corner {
|
position: absolute;
|
display: inline-block;
|
content: " ";
|
width: 16px;
|
height: 16px;
|
}
|
.table-wrapper:before {
|
left: 0;
|
top: 0;
|
border-top: 2px solid #00FEFF;
|
border-left: 2px solid #00FEFF;
|
}
|
.table-wrapper:after {
|
left: 0;
|
bottom: 0;
|
border-bottom: 2px solid #00FEFF;
|
border-left: 2px solid #00FEFF;
|
}
|
.table-wrapper-corner.top-right {
|
top: 0;
|
right: 0;
|
border-top: 2px solid #00FEFF;
|
border-right: 2px solid #00FEFF;
|
}
|
.table-wrapper-corner.bottom-right {
|
bottom: 0;
|
right: 0;
|
border-bottom: 2px solid #00FEFF;
|
border-right: 2px solid #00FEFF;
|
}
|
.table-wrapper-header {
|
padding-left: 16px;
|
color: #00FEFF;
|
border-bottom: 1px solid #113bb1;;
|
}
|
|
.title-icon {
|
display: inline-block;
|
width: 30px;
|
height: 30px;
|
}
|
.title-icon:before,
|
.title-icon:after,
|
.title-icon-content{
|
display: inline-block;
|
content: "";
|
width: 4px;
|
vertical-align: middle;
|
}
|
|
.title-icon:before {
|
height: 14px;
|
background-color: #0f448d;
|
}
|
.title-icon-content {
|
margin-left: 4px;
|
height: 18px;
|
background-color: #1e77b8;
|
}
|
.title-icon:after {
|
margin-left: 4px;
|
height: 22px;
|
background-color: #2cabe3;
|
}
|
</style>
|