<div id="app">
<div @click.right="handleRightClick">handleRightClick</div>
<div @click.left="handleLeftClick">handleLeftClick</div>
<div @click.middle="handleMiddleClick">handleMiddleClick</div>
</div>
var app = new Vue({
el: "#app",
methods: {
handleRightClick: function () {
console.log("handleRightClick");
},
handleLeftClick: function () {
console.log("handleRightClick");
},
handleMiddleClick: function () {
console.log("handleRightClick");
}
}
});
This Pen doesn't use any external CSS resources.