elementui中 el-table 点击选中背景色
2.data中绑定数值
3.
// 选中背景色
rowClass({row, rowIndex}) {
if(row == this.chooseRow){
return { “border”: “solid 1px #3dffef”,“background-color”: “rgba(185, 221, 249, 0.75)” }
}
},
// 点击一行事件
handdle(row, event, column) {
this.chooseRow = row
},