antvis/G6

自定义节点使用了setstate方法后,之前设置的样式全部失效了 #4774

wSh-zm posted onGitHub

问题描述

自定义节点使用了setstate方法后,之前设置的样式全部失效了

重现链接

重现步骤

预期行为

自定义节点setstat方法只对方法中单独设置的样式更改

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


不是很明白问题,请给个在线复现的 demo 吧

posted by Yanyan-Wang over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests