X6 icon indicating copy to clipboard operation
X6 copied to clipboard

自定义vue组件的时候,如果子组件中涉及到鼠标事件,就会和x6自带的鼠标事件冲突,子组件内部的功能会被影响

Open qw123gz opened this issue 10 months ago • 3 comments

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 avatar Apr 12 '24 09:04 qw123gz

👋 @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.

x6-bot[bot] avatar Apr 12 '24 09:04 x6-bot[bot]

可以阻止冒泡

cnyballk avatar Apr 15 '24 09:04 cnyballk

image

来看看这个:https://www.yuque.com/sxd_panda/antv/vue-node#VBRhH

zlecheng avatar Jun 04 '24 06:06 zlecheng