2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-24 01:40:31 +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> </button>
</div> </div>
<vue-context ref="menu"> <vue-context ref="menu" v-slot="{ data }">
<template v-slot="child" v-if="child.data"> <template v-if="data">
<li> <li>
<a @click.prevent="alertName(child.data.name)"> <a @click.prevent="alertName(data.name)">
Alert name Alert name
</a> </a>
</li> </li>
<li> <li>
<a @click.prevent="remove(child.data.index)"> <a @click.prevent="remove(data.index)">
Delete "{{ child.data.name }}" Delete "{{ data.name }}"
</a> </a>
</li> </li>
</template> </template>