Commit 8c1b4d82 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by hetech

Table: retain currently selected row when expanding row (#11464)

parent 96df89ec
...@@ -267,7 +267,8 @@ export default { ...@@ -267,7 +267,8 @@ export default {
}, },
getRowClass(row, rowIndex) { getRowClass(row, rowIndex) {
const classes = ['el-table__row']; const currentRow = this.store.states.currentRow;
const classes = 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