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 v1.42 中文网 - 粤ICP备13048890号