mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-24 02:50:33 +03:00
wip
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user