vue3-contextmenu
vue3-contextmenu copied to clipboard
多个contextmenu 父子级关系 就只显示父级的菜单
举个例子:
<a-row :gutter="[10, 10]" style="margin-top:20px" v-contextmenu="{ name: 'boxmenu' }">
<a-col :span="4" v-for="info in state.showfiles" style="z-index:999999"
v-contextmenu="{ name: 'dirmenu', info: info }">
.......
</a-col>
</a-row>
下面的dirmenu就是去效果 显示的还是boxmenu
I have the same issue.
Easy fix, edit the directive.ts of the library and add e.stopPropagation() under e.preventDefault().