Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qw123gz opened this issue Apr 12, 2024 · 3 comments
Labels
potential-duplicate This issue or pull request may duplicated with others.

Comments

@qw123gz
Copy link

qw123gz commented Apr 12, 2024

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的事件冲突,造成子组件内部的裁剪功能无法正常使用

@x6-bot
Copy link
Contributor

x6-bot bot commented Apr 12, 2024

Potential duplicates:

@x6-bot x6-bot bot added the potential-duplicate This issue or pull request may duplicated with others. label Apr 12, 2024
@zlecheng
Copy link

https://www.yuque.com/sxd_panda/antv/x6#VBRhH (节点事件和vue节点内的click事件冲突问题)

这个解决方法和你这个问题类似,你可以参考下

@qw123gz
Copy link
Author

qw123gz commented May 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential-duplicate This issue or pull request may duplicated with others.
Projects
None yet
Development

No branches or pull requests

2 participants