mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-16 09:20:32 +03:00
Test event emitting
This commit is contained in:
+5
-2
@@ -10,7 +10,10 @@
|
||||
Right click on me
|
||||
</p>
|
||||
|
||||
<vue-context ref="menu" :close-on-scroll="close" :close-on-click="false">
|
||||
<vue-context ref="menu" :close-on-scroll="close"
|
||||
@close="onClose"
|
||||
@open="onOpen"
|
||||
>
|
||||
<ul slot-scope="child">
|
||||
<li @click="onClick(child.data)">Option 1 {{ child.data && child.data.foo }}</li>
|
||||
<li>Option 2</li>
|
||||
@@ -20,4 +23,4 @@
|
||||
|
||||
<script src="js/dist/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user