Optimize Table contextMenu
This commit is contained in:
parent
6f7dc71800
commit
baa83cac60
1 changed files with 16 additions and 13 deletions
|
@ -717,6 +717,8 @@
|
|||
}
|
||||
},
|
||||
contextmenuCurrentRow (_index, rowKey, event) {
|
||||
if (this.contextMenuVisible) this.handleClickContextMenuOutside();
|
||||
this.$nextTick(() => {
|
||||
const $TableWrap = this.$refs.tableWrap;
|
||||
const TableBounding = $TableWrap.getBoundingClientRect();
|
||||
const position = {
|
||||
|
@ -730,6 +732,7 @@
|
|||
} else {
|
||||
this.$emit('on-contextmenu', JSON.parse(JSON.stringify(this.cloneData[_index])), event, position);
|
||||
}
|
||||
});
|
||||
},
|
||||
getSelection () {
|
||||
// 分别拿根数据和子数据的已选项
|
||||
|
|
Loading…
Add table
Reference in a new issue