add
gaosp
2024-01-06 501c6a293991c735436907d71e7e5699ae6f3984
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-06 19:54:37
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/list/index.vue
-->
<template>
    <div class="list">
        <div class="search">
            <slot name="search"></slot>
        </div>
        <div class="table">
            <el-table
            :data="tableData"
            style="width: 100%">
                <slot name="columns"></slot>
                <!-- <el-table-column
                    prop="date"
                    label="日期"
                    width="180">
                </el-table-column>
                <el-table-column
                    prop="name"
                    label="姓名"
                    width="180">
                </el-table-column>
                <el-table-column
                    prop="address"
                    label="地址">
                </el-table-column> -->
            </el-table>
            <div class="pagination">
                <el-pagination
                style="background: transparent;"
                :page-size="20"
                :pager-count="11"
                layout="prev, pager, next"
                :total="1000">
                </el-pagination>
            </div>
            
        </div>
    </div>
</template>
<script>
    export default {
        data () {
            return {
                tableData: [{name:123},{name:123}]
            }
        },
 
    }
</script>
<style lang="scss">
    .list {
        width: 100%;
        height: 100%;
        overflow: auto;
        .table {
            .el-table td, .el-table th.is-leaf {
                // border-bottom: 1px solid red;
                // padding: 20px ;
            }
            .el-table::before {
                background-color: transparent;
            }
            .el-table th {
                color: #E6E5E5;
                background-color: #182D54;
                border-bottom: none;
                
            }
            .el-table {
                color: #E6E5E5;
                background: transparent;
                background-color: transparent;
                border-bottom: none;
                padding: 0;
            }
            .el-table td{
                color: #E6E5E5;
                border-bottom: none;
                background: transparent;
                background-color: transparent!important;;
                // padding: 0;
            }
            .el-table tr{
                color: #E6E5E5;
                border-bottom: none;
                background: transparent;
                background-color: transparent!important;;
                border-bottom: none;
                padding: 0;
            }
            .el-table__header {
                color: #E6E5E5;
                background: transparent;
                background-color: transparent;
                border-bottom: none;
                padding: 0;
            }
            .el-table__body-wrapper {
                color: #E6E5E5;
                background: transparent;
                background-color: transparent;
                border-bottom: none;
                padding: 0;
            }
            .el-table__header-wrapper {
                border: none;
                border-bottom: none;
                padding: 0;
            }
        }
        .pagination {
            background: transparent;
        }
        .el-pager li {
            background: transparent;
        }
        .el-pagination button:disabled {
            background: transparent;
        }
        .el-pagination .btn-next, .el-pagination .btn-prev {
            background: transparent;
        }
    }
</style>
<style lang="scss" scoped>
    .list {
        
    }
    .search {
        margin: 20px 30px 0;
        padding: 20px 30px;
        display: flex;
        flex-wrap: wrap;
        background: url('./search.png') 100% 100% no-repeat;
        background-size: contain;
    }
    .table {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 20px 30px;
        background: transparent;
        overflow: auto;
        .pagination {
            position: absolute;
            bottom: 0;
            right: 40px;
        }
    }
</style>