|
@@ -32,6 +32,7 @@ export default {
|
|
|
<tr
|
|
|
on-click={ ($event) => this.handleClick($event, row) }
|
|
|
on-mouseenter={ _ => this.handleMouseEnter($index) }
|
|
|
+ on-mouseleave={ _ => this.handleMouseLeave() }
|
|
|
class={ this.getRowClass(row, $index) }>
|
|
|
{
|
|
|
this._l(this.columns, (column, cellIndex) =>
|
|
@@ -145,6 +146,10 @@ export default {
|
|
|
this.store.commit('setHoverRow', index);
|
|
|
},
|
|
|
|
|
|
+ handleMouseLeave() {
|
|
|
+ this.store.commit('setHoverRow', null);
|
|
|
+ },
|
|
|
+
|
|
|
handleClick(event, row) {
|
|
|
const table = this.$parent;
|
|
|
const cell = getCell(event);
|