Skip to content

布局

🌐 Layout

很多时候,你会希望自动布局你的节点,而不是手动分配它们的位置。Vue Flow 没有 内置的布局系统,但使用第三方库实现这一点非常容易。

🌐 A lot of the time, you'll want to layout your nodes automatically instead of assigning their positions manually. Vue Flow does not have a built-in layouting system, but it's easy to use a third-party library to achieve this.

在这个例子中,我们将使用 dagre 来布局我们的节点。

🌐 In this example we are going to use dagre to layout our nodes.

VueFlow 中文网 - 粤ICP备13048890号