XFlow
XFlow copied to clipboard
NodeCollapsePanel 组件数据如何修改呢?
描述你想申请的功能
下面代码中 nodeDataService 数据如何修改呢?
<NodeCollapsePanel
className="xflow-node-panel"
searchService={dndPanelConfig.searchService}
nodeDataService={dndPanelConfig.nodeDataService}
onNodeDrop={dndPanelConfig.onNodeDrop}
position={{ width: 320, top: 0, bottom: 0, left: 0 }}
footerPosition={{ height: 0 }}
bodyPosition={{ top: 40, bottom: 0, left: 0 }}
/>
- 例如拖入了一个新的 node A
- 希望左边面板的 node A 删除掉
- 画板node A 删除掉后, 左边面板 node A 重新显示
graph.on('node:added', (params) => {
console.log('removed', '删除掉 pannel 上对应的内容')
changePortsVisible(false)
})
graph.on('node:removed', (params) => {
console.log('removed', '将删除的node 添加到 pannel 上')
changePortsVisible(false)
})
描述你想要的解决方案
可以修改 NodeCollapsePanel 组件的数据
描述你所考虑的替代方案
无
你的网站或应用程序实例
No response
屏幕截图或视频
No response
👋 @shibin-cli
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.
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! 💪💯
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! 💪💯
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.