X6
X6 copied to clipboard
自定义vue组件的时候,如果子组件中涉及到鼠标事件,就会和x6自带的鼠标事件冲突,子组件内部的功能会被影响
Describe the bug
在自定义的vue组件中,引入vue-cropper插件,里面有个功能是裁剪,需要鼠标按下和抬起判断,这个正好和x6的事件冲突,造成子组件内部的裁剪功能无法正常使用
Your Example Website or App
url
Steps to Reproduce the Bug or Issue
在自定义的vue组件中,引入vue-cropper插件,里面有个功能是裁剪,需要鼠标按下和抬起判断,这个正好和x6的事件冲突,造成子组件内部的裁剪功能无法正常使用
Expected behavior
在自定义的vue组件中,引入vue-cropper插件,里面有个功能是裁剪,需要鼠标按下和抬起判断,这个正好和x6的事件冲突,造成子组件内部的裁剪功能无法正常使用
Screenshots or Videos
在自定义的vue组件中,引入vue-cropper插件,里面有个功能是裁剪,需要鼠标按下和抬起判断,这个正好和x6的事件冲突,造成子组件内部的裁剪功能无法正常使用
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.11.1]
Additional context
在自定义的vue组件中,引入vue-cropper插件,里面有个功能是裁剪,需要鼠标按下和抬起判断,这个正好和x6的事件冲突,造成子组件内部的裁剪功能无法正常使用
👋 @qw123gz
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
可以阻止冒泡
来看看这个:https://www.yuque.com/sxd_panda/antv/vue-node#VBRhH