<el-table :row-class-name="rowClass"></el-table>
rowClass({row}){
if(this.clickToId = row.id){
return "rowClassHight";
}
}
.el-table ::v-deep .rowClassHight{
background : red;
}
this.clickToId => 当前page页选中行高亮Id
<el-table :row-class-name="rowClass"></el-table>
rowClass({row}){
if(this.clickToId = row.id){
return "rowClassHight";
}
}
.el-table ::v-deep .rowClassHight{
background : red;
}
this.clickToId => 当前page页选中行高亮Id