right click vue code example
Example 1: vue right click
<button @contextmenu.prevent="handler">r-click</button>
Example 2: javascript vue.js right click
<button @contextmenu="handler($event)">r-click</button>
methods : {
handler: function(e) {
//do stuff
e.preventDefault();
}
}