Commit e58cffaa authored by 杨奕's avatar 杨奕 Committed by GitHub

Table: fix highlightCurrentRow regression (#11563)

parent af1a287c
...@@ -268,7 +268,9 @@ export default { ...@@ -268,7 +268,9 @@ export default {
getRowClass(row, rowIndex) { getRowClass(row, rowIndex) {
const currentRow = this.store.states.currentRow; const currentRow = this.store.states.currentRow;
const classes = currentRow === row ? ['el-table__row', 'current-row'] : ['el-table__row']; const classes = this.table.highlightCurrentRow && currentRow === row
? ['el-table__row', 'current-row']
: ['el-table__row'];
if (this.stripe && rowIndex % 2 === 1) { if (this.stripe && rowIndex % 2 === 1) {
classes.push('el-table__row--striped'); classes.push('el-table__row--striped');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment