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下该如何实现右击菜单 #1

Open
Glory-gg opened this issue Mar 31, 2021 · 2 comments
Open

请问vue下该如何实现右击菜单 #1

Glory-gg opened this issue Mar 31, 2021 · 2 comments

Comments

@Glory-gg
Copy link

https://x6.antv.vision/zh/examples/edge/tool#context-menu
这个是react的示例

@AK081KA
Copy link
Owner

AK081KA commented May 18, 2021

可以写菜单组件,公布类型及菜单项,可以参考工具栏的实现,然后就剩下右键菜单定位及交互的实现。最近比较忙,后面有时间会更新实现。

@lloydzhou
Copy link

https://github.com/lloydzhou/antv-x6-vue/blob/master/src/widgets/ContextMenu.tsx
这里有一个示例。
这个项目将x6的画布和内置的shape等抽象成vue的组件来使用。
而这个ContextMenu是作为一个widgets的方式来实现的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants