mirror of https://github.com/ElemeFE/element
Table: Add class to expanded row
parent
f347657651
commit
f6f61bcbde
|
@ -295,6 +295,10 @@ export default {
|
||||||
classes.push(rowClassName.call(null, row, index) || '');
|
classes.push(rowClassName.call(null, row, index) || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.store.states.expandRows.indexOf(row) > -1) {
|
||||||
|
classes.push('expanded');
|
||||||
|
}
|
||||||
|
|
||||||
return classes.join(' ');
|
return classes.join(' ');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue