update(examples): correct examples

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent b12863f297
commit 445718d6f4
32 changed files with 206 additions and 397 deletions
+2 -5
View File
@@ -65,16 +65,13 @@ const initialEdges = [
},
]
const { OnPaneReady } = useVueFlow()
const { nodes, edges, addEdges } = useElementsState({
const { nodes, edges } = useElementsState({
nodes: initialNodes,
edges: initialEdges,
})
OnPaneReady((flowInstance) => flowInstance.fitView())
</script>
<template>
<VueFlow :snap-to-grid="true">
<VueFlow :fit-view-on-init="true" :snap-to-grid="true">
<template #edge-custom="props">
<CustomEdge v-bind="props" />
</template>