vue-context-menu icon indicating copy to clipboard operation
vue-context-menu copied to clipboard

🗃️ Vue 2.x 右键菜单组件,菜单内容可以随意自定义

Results 14 vue-context-menu issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/65750898/178241046-bd00a4f0-3d2b-4f37-b27d-0f7f55b7de39.png)

如果事件已经绑定的情况下target发生变化 因为binded始终为true 则bindEvents里的if判断永远无法成立而直接return

很多人的项目结构 会自己监听右键 屏蔽原始菜单之类的操作!

enhancement

有一个tabel里面很多td 如果右击其中一个td弹出的菜单,如何取到td这个元素的dom对象

如果我想把菜单规定为 只能在 右键体验 上右键 怎么写啊

感谢你的工作,但我发现有一点小问题,注意下方你的源码:你根据右键事件的clientX和clientY来直接设置menu的style的left和top,但是在一些布局中仅仅设置left和top根本无效,于是menu自始至终都会在文档流中的位置(而不是根据右键点击的位置改变) ``` // 右键事件事件处理 contextMenuHandler (e) { this.x = e.clientX this.y = e.clientY this.layout() this.$emit('update:show', true) e.preventDefault() }, // 布局 layout () { this.style = { left: this.x + 'px',...

Hi how would i set up different place instead of document.body? This doesn't work `contextMenuTarget: document.querySelector('.header')`