|
@@ -36,6 +36,7 @@ export default {
|
|
|
<tr
|
|
|
style={ this.rowStyle ? this.getRowStyle(row, $index) : null }
|
|
|
key={ this.$parent.rowKey ? this.getKeyOfRow(row, $index) : $index }
|
|
|
+ on-dblclick={ ($event) => this.handleDoubleClick($event, row) }
|
|
|
on-click={ ($event) => this.handleClick($event, row) }
|
|
|
on-mouseenter={ _ => this.handleMouseEnter($index) }
|
|
|
on-mouseleave={ _ => this.handleMouseLeave() }
|
|
@@ -195,6 +196,11 @@ export default {
|
|
|
this.store.commit('setHoverRow', null);
|
|
|
},
|
|
|
|
|
|
+ handleDoubleClick(event, row) {
|
|
|
+ const table = this.$parent;
|
|
|
+ table.$emit('row-dblclick', row, event);
|
|
|
+ },
|
|
|
+
|
|
|
handleClick(event, row) {
|
|
|
const table = this.$parent;
|
|
|
const cell = getCell(event);
|