vuejs-contextmenu
vue.js contextmenu wrapper (currently unstable)
Usage
<script>
<!--path to vuejsContextmenu(.min).js--> Google Facebook box1 This text doesn't have custom contextmenu But this text have custom contextmenu
//globalVueconst app = el: '#app'
<script type="module">
Example
Example use all the features this component can provide.
API (May change)
Slots
default
Contents in default
slot will displayed normally
Right click/long press(mobile) will trigger contextmenu
ctxmenu
ctxmenu
slot will be wrapped in a invisible div.ctxmenu
It will appear when being triggered, and disappeared when next click.
Events
open
Triggerd after context menu opened.
close
Triggerd after context menu closed.