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

指令操作显示后能否支持点击其他区域隐藏而不需要手动调用隐藏 #102

Open
phpjishu opened this issue Jun 8, 2021 · 4 comments

Comments

@phpjishu
Copy link

phpjishu commented Jun 8, 2021

期望结果

使用指令显示菜单后,点击任意区域自动隐藏菜单

实际结果

使用指令显示菜单后无法,点击其他区域不隐藏

复现步骤

环境说明

  • 组件版本:3.0.0
  • Vue 版本:3.0.0
  • 操作系统及版本:win10
  • 浏览器及版本:chrome
@CyberNika
Copy link
Owner

方便给个可以复现的代码吗?看 https://heynext.xyz/v-contextmenu/ 里是正常的吧

@lancertea
Copy link

我也出现了类似情况

@xx2hh
Copy link

xx2hh commented Mar 26, 2022

有大佬解决嘛?

@yuxienanshan
Copy link

自定义指令clickoutside里执行可以隐藏 Object.keys(window.$$VContextmenu).forEach((key) => {
window.$$VContextmenu[key].hide();
});,可以隐藏,但是使用$refs.contextmenu.hide()不起效果

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

5 participants