el-table 背景透明 自定义行颜色 高亮颜色 自定义样式
<style lang="less" scoped>
::v-deep .el-table,
::v-deep .el-table__expanded-cell {
background-color: transparent !important;
}
::v-deep .el-table th,
::v-deep .el-table tr,
::v-deep .el-table td {
background-color: transparent !important;
border: 1px solid rgba(3, 40, 70, 0.9) !important;
}
::v-deep.el-table td.el-table__cell {
border: 0;
}
::v-deep.el-table th.el-table__cell.is-leaf {
border: 0;
}
::v-deep.el-table::before {
height: 0;
}
::v-deep .el-table__body-wrapper::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
background-color: #2893cc;
border-radius: 3px;
}
::v-deep .el-table__header-wrapper {
background-color: rgba(65, 129, 255, 0.4);
}
::v-deep .el-table .cell {
// color: #15c0ff !important;
color: #fff;
}
::v-deep .el-table th.el-table__cell > .cell {
color: #e1f1fe !important;
}
::v-deep .el-table__body tr.current-row > td {
background-color: #15c0ff20 !important;
}
::v-deep .el-table__body tr.current-row .cell {
color: #ffffff !important;
}
::v-deep .el-table__body tr:hover > td {
background-color: #15c0ff20 !important;
}
</style>