File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 88``` HTML
99<ContextMenu ref =" contextMenu" :menu-items =" menuItems" />
1010
11- <div class =" context-menu-trigger"
11+ <div class =" context-menu-trigger"
1212@click.right.prevent =" $refs.contextMenu.open($event)" >
1313 Right Click Me!
1414</div >
1515```
1616
1717``` javascript
1818import ContextMenu from ' vue-context-menu-popup'
19+ import ' vue-context-menu-popup/dist/vue-context-menu-popup.css' ;
1920
2021export default {
2122 data () {
@@ -55,35 +56,35 @@ export default {
5556
5657## API
5758
58- ### context-menu
59+ ### context-menu
5960
6061A simple context menu component
6162
6263``` html
6364<ContextMenu :menu-items =" [....]" />
64- ```
65+ ```
6566
66- #### props
67+ #### props
6768
68- - ` menu-items ` *** Array*** (* required* )
69+ - ` menu-items ` *** Array*** (* required* )
6970
70- #### data
71+ #### data
7172
72- - ` visible `
73+ - ` visible `
7374
74- ** initial value:** ` false `
75+ ** initial value:** ` false `
7576
76- - ` contextMenuPosition `
77+ - ` contextMenuPosition `
7778
78- ** initial value:** ` [object Object] `
79+ ** initial value:** ` [object Object] `
7980
80- #### methods
81+ #### methods
8182
82- - ` close() `
83+ - ` close() `
8384
84- - ` open(position) `
85+ - ` open(position) `
8586
86- Accepts an Object with an ` x, y ` position or an instance of Event
87+ Accepts an Object with an ` x, y ` position or an instance of Event
8788
8889## Installation
8990
You can’t perform that action at this time.
0 commit comments