ContextMenu component for Vue 2.0.
Chinese |English
The installation
$ yarn add v-contextmenu # npm i -S v-contextmenuCopy the code
An overview of
Visit the online sample or view the online Sample GIF
use
A simple example
import contentmenu from 'v-contextmenu'
import 'v-contextmenu/dist/index.css'
Vue.use(contentmenu)Copy the code
< Template > < V-contextmenu ref=" contextMenu "> < V-contextmenu-item > < V-Contextmenu-item > Menu 2</ V-Contextmenu-item > < V-Contextmenu-item > Menu 3</ V-Contextmenu-item > </ V-ContextMenu > <div V-contextmenu: ContextMenu > Right click on this area </div> </template>Copy the code
See documentation & examples for detailed usage
The theme
Two themes are provided, and see VContextmenu for how to use them
The default
Bright color
The development of
$ yarn install
$ yarn devCopy the code
build
$YARN build:example # build example site $yarn build # build:package & build:exampleCopy the code
Update log
See the releases