antvis/G6


The issue has been closed
icon的部分style在调用updateNodeData方法更新后不能生效 #6116
abc3660170 posted onGitHub
Describe the bug / 问题描述
假设我使用的是 iconfont字体图标作为我的icon,style: { iconText: '\u103' } , updateNodeData([ { id:xxx, style: { iconText: '\u104' } }]), 很显然我想通过updateNodeData 将我的icon图标(\u103)更新为其他图标(\u104),这样是无法生效的,如果我更新的是key的fill ,就可以正常更新
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response