请问如何取消 事件的穿透,求指点
xusJs opened this issue · 2 comments
xusJs commented
代码如下所示:
要如何做才能 右击 ‘item’ 元素而不触发 ‘新增’ ? 求各位大佬指点
<div class='box' v-contextmenu:contextmenu >
<div class='item' v-contextmenu:contextmenu2>XXXXXX.png</div>
<div class='item' v-contextmenu:contextmenu2>XXXXXX.png</div>
</div>
<v-contextmenu ref="contextmenu">
<v-contextmenu-item >新增</v-contextmenu-item>
</v-contextmenu>
<v-contextmenu ref="contextmenu2">
<v-contextmenu-item >下载</v-contextmenu-item>
</v-contextmenu>
scientistzjf commented
<div class='box' v-contextmenu:contextmenu >
改成
<div class='box'>
hululuuuuu commented
有好方法么,我目前也没有发现好的方案