mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-13 02:12:22 +03:00
formatting
This commit is contained in:
+18
-18
@@ -1,23 +1,23 @@
|
||||
<!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>
|
||||
<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>
|
||||
<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>
|
||||
<script src="js/dist/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user