给elementUI el-table 背景设置为空

82 阅读1分钟

使用的是scss 就用 ::v-deep 来进行渗透,使用的是普通的 就用::v-/deep/ 渗透

::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: rgba($color: #000000, $alpha: 0.2) !important;
  color: white;
}

:deep(.el-table) 同理