有写时候样式写完,需要重新给框架的样式进行覆盖,以便达到我们自己设定的样式,这种样式的覆盖有时候非常麻烦,但是你找到方法了,就会很快。
// 设置el-table的样式
.el-table{
.el-table__header-wrapper{
// .padding_lr(24);
.el-table__header{
.has-gutter{
tr{
background: #FAFAFA;
th{
background: #FAFAFA;
}
th:nth-child(1){
.padding_lr(24);
}
}
}
}
}
.el-table__body-wrapper{
// .padding_lr(24);
.el-table__body{
.el-table__row{
td:nth-child(1){
.padding_lr(24);
}
td:nth-last-child(1){
div{
p{
float:left;
.margin_right(10);
}
}
}
}
.el-table__row:hover>td{
background: rgba(255, 136, 10, 0.1);
}
}
}
.el-table__footer-wrapper{
.has-gutter{
tr{
background: #FAFAFA;
td{
background: #FAFAFA;
}
td:nth-child(1){
.padding_lr(24);
}
}
}
.cell{
color:#FF880A;
}
}
}