longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<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>