2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-22 21:10:31 +03:00

Scrollable (#3)

* Add ability to close context menu on scroll

* Update README

* Update test page

* Update changelog
This commit is contained in:
Randall Wilk
2018-05-29 12:44:52 -05:00
committed by GitHub
parent c1890e5a02
commit ca7b95b553
7 changed files with 173 additions and 162 deletions
+2 -2
View File
@@ -4,13 +4,13 @@
<meta charset="UTF-8">
<title>Vue Context Test Page</title>
</head>
<body>
<body style="height:2000px;">
<div id="app">
<p @contextmenu.prevent="$refs.menu.open($event, { foo: 'bar' })">
Right click on me
</p>
<vue-context ref="menu">
<vue-context ref="menu" :close-on-scroll="close">
<ul slot-scope="child">
<li @click="onClick(child.data)">Option 1 {{ child.data && child.data.foo }}</li>
<li>Option 2</li>