antvis / XFlow

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

动态调用自定义节点数据(nodes),在FlowchartNodePanel中无法显示 #201

Closed ghostrin closed 2 years ago

ghostrin commented 2 years ago

Describe the bug

动态调用自定义节点数据(nodes),在FlowchartNodePanel中无法显示自定义节点;

Your Example Website or App

https://codesandbox.io/s/b7gwcu

Steps to Reproduce the Bug or Issue

1、动态获取nodes所需的数据"NodesData",数据类型符合要求; 2、FlowchartNodePanel中调用数据,代码如下,无法显示自定义节点;

<FlowchartNodePanel
            registerNode={{
              title: '业务节点',
              nodes: NodesData,
 }}

Expected behavior

我希望保留FlowchartExtension,还可以在在FlowchartNodePanel中动态加载自定义节点

Screenshots or Videos

No response

Platform

OS: macOS Browser: Chrome Version: 99

Additional context

No response

xflow-bot[bot] commented 2 years ago

👋 @ghostrin

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.

ghostrin commented 2 years ago

我想将流程图中左侧自定义节点,换成动态获取节点,我尝试将NodesDataList里每个节点进行ADD_NODE,提示不能读取executeCommand,该如何能动态获取节点呢?请帮助给我一个思路吧

_app.executeCommand<NsNodeCmd.AddNode.IArgs>(XFlowNodeCommands.ADD_NODE.id, {
          nodeConfig: NodesDataList[index]
    });
xflow-bot[bot] commented 2 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

xflow-bot[bot] commented 2 years ago

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot 🤖, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the AntV community! 💪💯

xflow-bot[bot] commented 1 year ago

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.