antvis/G6

@antv/g6-react-node 部分组件的 typescript 类型缺失 #4187

whinc posted onGitHub

Describe the bug

按照语雀上这篇 在G6中使用React定义的节点 文章定义节点,过程中发现部分组件的 ts 类型提示缺失,主要体现在 Group 组件的 keyshape、style 和 onXXX 事件

image

Your Example Website or App

https://codesandbox.io/s/antv-g6-react-node-demo-mtfu6m?file=/src/registerNodes.tsx

Steps to Reproduce the Bug or Issue

查看 registerNodes.tsx 文件,ts 类型会提示找不到相关类型

Expected behavior

期望没有 ts 类型错误

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 107

Additional context

No response


@antv/g6-react-node 已不再维护,请使用 @antv/g6-extension-react (需要 G6 版本 >= 5.0)

posted by Aarebecca 11 months ago

Fund this Issue

$0.00
Funded

Pull requests