antvis/G6

【V5】自定义节点的选中状态无法触发 #6151

Wu-Yao posted onGitHub

Describe the bug / 问题描述

点击自定义React节点,不会高亮当前节点及其直接相邻的节点和边。

https://stackblitz.com/edit/react-kddz3c?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response


React 状态样式需自行实现,状态获取方式为:

// data.status
component: (data) => <Node data={data} />

'click-select' 暂不适用 React 节点

posted by Aarebecca 9 months ago

Fund this Issue

$0.00
Funded

Pull requests