antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
564 stars 233 forks source link

Xflow如何使用连接桩的tooltip功能呢? #473

Open 583849487 opened 1 week ago

583849487 commented 1 week ago

问题描述

看了很多实例,都是x6的玩法,但是xflow中该怎么对连接桩进行tooltip呢?我找到了连接桩的useGraphEvent('node:port:mouseenter'事件,想配合ReactDOM.render去实现,但是还是不能渲染https://x6.antv.vision/zh/examples/node/tool#port-tooltip

重现链接

https://x6.antv.vision/zh/examples/node/tool#port-tooltip

重现步骤

https://x6.antv.vision/zh/examples/node/tool#port-tooltip

预期行为

xflow中对连接桩的鼠标移入事件进行tooltip

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

xflow-bot[bot] commented 1 week ago

👋 @583849487

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.