antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
564 stars 233 forks source link

FlowchartNodePanel中自定义节点的renderComponent属性无效以及快捷键问题 #417

Closed jiang-zhong-xi closed 9 months ago

jiang-zhong-xi commented 9 months ago

Describe the bug

renderComponent失效

在FlowchartNodePanel中的registerNode属性定义了一个节点,如下 image 实际上没有渲染出“(自定义节点3)” 看了先源码发现renderComponent被过滤掉了: image

ctrl +s 是撤销

在官方示例给的quick-start-cra-js中就有这个问题。

Your Example Website or App

https://github.com/antvis/XFlow/tree/master/examples/quick-start-cra-js

Steps to Reproduce the Bug or Issue

  1. 给renderComponent赋值
  2. 运行
  3. 没有展现出对应的组件

Expected behavior

正常就行

Screenshots or Videos

No response

Platform

Additional context

No response

xflow-bot[bot] commented 9 months ago

👋 @jiang-zhong-xi

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.

jiang-zhong-xi commented 9 months ago

这个项目不再更新了吗 @lifesinger @RaoHai @linhuiw @rockdai