Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何取消 事件的穿透,求指点 #103

Open
xusJs opened this issue Jul 8, 2021 · 2 comments
Open

请问如何取消 事件的穿透,求指点 #103

xusJs opened this issue Jul 8, 2021 · 2 comments

Comments

@xusJs
Copy link

xusJs commented Jul 8, 2021

 代码如下所示:
 
 要如何做才能 右击 ‘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
Copy link

<div class='box' v-contextmenu:contextmenu >
改成
<div class='box'>

@hululuuuuu
Copy link

有好方法么,我目前也没有发现好的方案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants