update: 表格组件添加阴影效果

This commit is contained in:
zhuoqinglian 2026-06-16 09:46:25 +08:00
parent 8a5dac181e
commit 45fd850757

View file

@ -1,5 +1,6 @@
<template> <template>
<div class="custom-table-wrapper"> <div class="custom-table-wrapper">
<div class="table-container">
<el-table <el-table
ref="tableRef" ref="tableRef"
:data="data" :data="data"
@ -75,6 +76,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<!-- 分页 --> <!-- 分页 -->
<div class="table-footer"> <div class="table-footer">
@ -241,7 +243,11 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 0; min-height: 0;
overflow: hidden; .table-container {
height: 100%;
width: 100%;
box-shadow: 0 2px 12px rgba(74, 124, 253, 0.12);
border-radius: 6px;
.custom-table { .custom-table {
width: 100%; width: 100%;
border: 1px solid #eef3fd; border: 1px solid #eef3fd;
@ -268,6 +274,7 @@ export default {
} }
} }
} }
}
} }
.table-footer { .table-footer {
padding: 20px 0px 0px; padding: 20px 0px 0px;