table[highlight-current-row] with column[type=expand] will highlight wrong row
pull/5771/head^2
暮雨 2017-05-15 17:34:05 +08:00 committed by 杨奕
parent 3bdeb592df
commit 3fb5131d64
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default {
on-contextmenu={ ($event) => this.handleContextMenu($event, row) }
on-mouseenter={ _ => this.handleMouseEnter($index) }
on-mouseleave={ _ => this.handleMouseLeave() }
class={ [this.getRowClass(row, $index)] }>
class={ ['el-table__row', this.getRowClass(row, $index)] }>
{
this._l(this.columns, (column, cellIndex) =>
<td
@ -108,7 +108,7 @@ export default {
const el = this.$el;
if (!el) return;
const data = this.store.states.data;
const rows = el.querySelectorAll('tbody > tr');
const rows = el.querySelectorAll('tbody > tr.el-table__row');
const oldRow = rows[data.indexOf(oldVal)];
const newRow = rows[data.indexOf(newVal)];
if (oldRow) {