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

plugin menu异步加载数据 #5086

Open
gtx-titanx opened this issue Oct 25, 2023 · 4 comments
Open

plugin menu异步加载数据 #5086

gtx-titanx opened this issue Oct 25, 2023 · 4 comments
Labels
good first issue stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@gtx-titanx
Copy link

问题描述

您好,想请问下需求是右键点击节点展示菜单,菜单数据是通过ajax获取,第一次点击时发出请求获取到数据,但是菜单没能加载到数据,再点击一次才能正确的加载刚刚获取的菜单数据,这种情况要怎么解决

重现链接

重现步骤

预期行为

希望右击节点调取ajax数据能正确加载到菜单上

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

video.mp4

补充说明(可选)

No response

@github-actions
Copy link

hi @gtx-titanx, welcome!

@github-actions
Copy link

Hi @gtx-titanx, Please star this repo if you find it useful! Thanks ⭐!
你好 @gtx-titanx。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@Yanyan-Wang
Copy link
Contributor

v4 不支持~ v5 支持,v5 正在 beta 中,欢迎试用:https://g6-next.antv.antgroup.com/zh/examples/tool/contextMenu/#contextMenu
image

当然也欢迎社区朋友给 v4 提 PR 共建~

@zyh0yh
Copy link

zyh0yh commented Nov 8, 2023

我也出现同样的问题,我返回了一个带有slot的 div外层盒子,并给slot 传递了节点的data,第一次点击菜单拿不到传递的data,第二次才生效,beat:v5

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

3 participants