Open phpjishu opened 3 years ago
方便给个可以复现的代码吗?看 https://heynext.xyz/v-contextmenu/ 里是正常的吧
我也出现了类似情况
有大佬解决嘛?
自定义指令clickoutside里执行可以隐藏 Object.keys(window.$$VContextmenu).forEach((key) => { window.$$VContextmenu[key].hide(); });,可以隐藏,但是使用$refs.contextmenu.hide()不起效果
期望结果
使用指令显示菜单后,点击任意区域自动隐藏菜单
实际结果
使用指令显示菜单后无法,点击其他区域不隐藏
复现步骤
环境说明
Vue
版本:3.0.0