2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-05-17 04:59:35 +03:00
Files
vue-context/test/index.html
T
Randall Wilk 7bc40333d3 formatting
2018-05-30 12:27:29 -05:00

23 lines
695 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue Context Test Page</title>
</head>
<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" :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>
</ul>
</vue-context>
</div>
<script src="js/dist/index.js"></script>
</body>
</html>