vue-context-menu
vue-context-menu copied to clipboard
🗃️ Vue 2.x 右键菜单组件,菜单内容可以随意自定义

是没有做babel吗?
如果事件已经绑定的情况下target发生变化 因为binded始终为true 则bindEvents里的if判断永远无法成立而直接return
有一个tabel里面很多td 如果右击其中一个td弹出的菜单,如何取到td这个元素的dom对象
支持多级菜单吗
如果我想把菜单规定为 只能在 右键体验 上右键 怎么写啊
http://wxyx.lyfz.net/Public/2.png
弹出菜单位置不对
感谢你的工作,但我发现有一点小问题,注意下方你的源码:你根据右键事件的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')`