chore: fix examples

Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
bcakmakoglu
2022-02-21 20:25:17 +01:00
committed by Braks
parent ca85d8002e
commit f44784b1d0
28 changed files with 382 additions and 275 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { VueFlow, MiniMap, Controls, useVueFlow, useElementsState } from '~/index'
import { VueFlow, MiniMap, Controls, useVueFlow } from '~/index'
const {
nodesDraggable,
@@ -18,6 +18,9 @@ const {
onPaneScroll,
onPaneContextMenu,
onMoveEnd,
nodes,
edges,
addEdges,
} = useVueFlow({
modelValue: [
{ id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 5 } },
@@ -29,7 +32,6 @@ const {
],
})
const { nodes, edges, addEdges } = useElementsState()
const captureZoomClick = ref(false)
const captureZoomScroll = ref(false)