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

xflow2.0 实现 【使用 React 渲染 Label】功能 #491

Closed
liutaohz opened this issue Dec 20, 2024 · 1 comment
Closed

xflow2.0 实现 【使用 React 渲染 Label】功能 #491

liutaohz opened this issue Dec 20, 2024 · 1 comment

Comments

@liutaohz
Copy link

liutaohz commented Dec 20, 2024

描述你想申请的功能

希望在xflow2.0中可以使用React组件自定义渲染Label内容(x6的官方文档:https://x6.antv.antgroup.com/zh/examples/edge/label#render-with-react)

相关内容:#490

描述你想要的解决方案

在源码文件的Graph.tsx中接收透传onEdgeLabelRendered属性给x6;

描述你所考虑的替代方案

提供一个字段来透传而外的自定义属性给x6,用户可以通过这个功能把onEdgeLabelRendered传递下去

你的网站或应用程序实例

No response

屏幕截图或视频

No response

@liutaohz liutaohz closed this as completed Jan 6, 2025
@liutaohz
Copy link
Author

liutaohz commented Jan 6, 2025

我使用的是2.1.6发现这个问题;目前切换到2.1.13看到已经新增了这个属性。所以我先关闭这个issues了

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

1 participant