Skip to Content
代码示例Subflows & Grouping

选择分组

此示例演示了如何在 React Flow 中创建动态节点分组。你可以按住 Shift 并单击来选择多个节点,然后使用出现的工具栏中的 “组节点” 按钮将它们分组在一起。当选择一个组节点时,会出现一个 “取消分组” 按钮,用于分离所有子节点。组节点完全可调整大小,并会根据其子节点自动调整其尺寸。

¥This example demonstrates how to create dynamic node grouping in React Flow. You can select multiple nodes by holding Shift and clicking, then use the “Group Nodes” button in the appearing toolbar to group them together. When a group node is selected, an “Ungroup” button appears that detaches all child nodes. Group nodes are fully resizable and automatically adjust their dimensions based on their child nodes.

This is a Pro example. Get all pro examples, templates, 1:1 support from the xyflow team and prioritized Github issues with a React Flow Pro subscription.

关于此 Pro 示例

¥About this Pro Example

Last updated on