dom事件調用方法,.prevent阻止瀏覽器右擊事件:
@contextmenu.prevent="rightClickEvent($event,scope.row.author)"
@mouseup.prevent="mouseup($event,scope.row.author)"
methods: {
rightClickEvent(e, data) { let location = {// 鼠標在可視區域位置 x: e.clientX, y: e.clientY, }; this.$refs.rightClickEventDialogRef.openWindow(data, location); },
}