实例:
<el-table
:data="tableData"
:show-header="false"
style="width: 100%">
</el-table>
::v-deep .el-table--border th.el-table__cell,
::v-deep .el-table td.el-table__cell {
border-bottom: none !important;
}
::v-deep .el-table--border .el-table__cell {
border-right:none !important;
}
::v-deep .el-table--group, .el-table--border{
border: none !important;
}
解决:
.el-table::before {
height: 0;
}
// 去掉el-table的所有背景颜色以及所有hover的颜色
::v-deep .el-table,
::v-deep .el-table .el-table__header-wrapper th,
::v-deep .el-table--border {
background-color: transparent !important;
color: #4AC3B9;
}
::v-deep .el-table tr,
::v-deep .el-table__body tr:hover > td {
background-color: transparent !important;
}