2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-12 22:32:25 +03:00
This commit is contained in:
rawilk
2020-08-30 13:48:27 -05:00
parent d758bff4ee
commit 78ab6eaf87
+5 -5
View File
@@ -31,16 +31,16 @@
</button>
</div>
<vue-context ref="menu">
<template v-slot="child" v-if="child.data">
<vue-context ref="menu" v-slot="{ data }">
<template v-if="data">
<li>
<a @click.prevent="alertName(child.data.name)">
<a @click.prevent="alertName(data.name)">
Alert name
</a>
</li>
<li>
<a @click.prevent="remove(child.data.index)">
Delete "{{ child.data.name }}"
<a @click.prevent="remove(data.index)">
Delete "{{ data.name }}"
</a>
</li>
</template>