<el-table :data="tableData" border @cell-click="cellclick" :cell-style="tableCellStyle"> </el-table>
data(){ row:'', column:'' }
cellclick (row, column, cell, event) { this.row = row this.column = column }, tableCellStyle (row, rowIndex, column) { if (this.row === row.row && this.column === row.column) { return 'background-color:#ccc;' } else { return 'background-color:#fff;' } },
参考:https://blog.csdn.net/qq_14993591/article/details/124048716
标签:return,column,单元格,element,color,ui,table,row From: https://www.cnblogs.com/zqlym/p/17982995