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
<template>
    <div class="table-list">
        <div class="table-list-header">
            <i class="iconfont el-icon-fold"></i>
            <span class="header-text">{{ title }}</span>
        </div>
        <div class="table-list-content">
            <slot></slot>
        </div>
    </div>
</template>
 
<script>
export default {
    name: "TableList",
    props: {
        title: {
            type: String,
            default: ""
        },
        data: {
            type: Array,
            default() {
                return []
            }
        },
    },
}
</script>
 
<style scoped>
.table-list {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    height: 100%;
    border: 1px solid #00fefe;
}
.table-list-header {
    padding: 8px 0;
    font-size: 14px;
    color: #00fefe;
    border-bottom: 1px solid #00fefe;
}
.table-list .iconfont {
    font-size: 10px;
    margin-right: 8px;
    margin-left: 16px;
    transform: rotate(90deg);
}
 
.header-text {
    font-weight: bold;
}
.table-list-content {
    flex: 1;
    overflow-y: auto;
}
</style>