Skip to content

隐藏

¥Hidden

你可以通过将节点的 hidden 属性设置为 truefalse 来切换节点的可见性。

¥You can toggle the visibility of nodes by simply setting their hidden attribute to either true or false.

连接到隐藏节点的边也将被隐藏。

¥Edges that are connected to a hidden node will also be hidden.

如果将 onlyRenderVisibleElements 属性设置为 true,则只会渲染当前视图窗格内可见的元素。此行为默认处于禁用状态,这意味着所有元素都会被渲染,无论它们是否在视图内。

¥If you set the onlyRenderVisibleElements prop to true, only elements that are visible inside the current viewpane will be rendered. This behavior is disabled by default, meaning all elements are rendered whether they are inside the view or not.

这可以节省一些初始渲染时间,但请注意,移动窗格可能会导致节点在 DOM 中进行多次渲染,这可能会导致性能峰值,具体取决于必须挂载的组件的复杂程度。

¥This can save you some time on initial renders but consider that moving the pane can cause multiple renders of nodes into the dom, which can cause performance spikes depending on the complexity of the components that have to be mounted.

VueFlow v1.42 中文网 - 粤ICP备13048890号