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

节点右键菜单如何根据节点状态可以实现动态的显隐 #1587

Closed
qingfenglailai opened this issue Apr 24, 2024 · 1 comment
Closed

Comments

@qingfenglailai
Copy link

背景&目的

开发过程中节点node 需要添加右键菜单, 并且根据当前节点的执行状态 要动态的做右键菜单内容的显隐切换

@wumail
Copy link
Collaborator

wumail commented Apr 24, 2024

可以尝试自己实现哦~ 可以参考https://github.com/didi/LogicFlow/blob/master/packages/extension/src/components/menu/index.ts 虽然从现在的视角看这样的写法很原始,理论上只需要在当前代码的基础上增加一些代码就好了

@wumail wumail closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants