-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
小地图中的内容显示 #2554
Comments
👋 @zyj8 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. |
请问小地图能在画布创建完成之后再创建吗?有没有什么方法? |
这里有一个可能和你说的“动态加载小地图”类似的处理逻辑。
当然,还有一个react版本的封装,代码逻辑是一样的 |
谢谢哦!前阵子弄出来了,把getHTMLComponent属性删掉了,换成了自定义节点就好了 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
节点用的是自定义html,里面有一张图片,一段文本。
新增节点时,小地图显示的正常,但是编辑回显(graph.fromJSON())后,小地图并没有展示图片与文本,通过f12查看dom,确认并未渲染。
重现链接
https://x6.antv.vision/zh/examples/showcase/practices#mindmap
重现步骤
// 自定义节点代码
getHTMLComponent(node) {
const { image, name, asName = '' } = node.getData()
}
随意一张本地图片即可复现
预期行为
小地图节点图片等回显正常
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: