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 dcbe9865e9
commit 124338b8d4
7 changed files with 124 additions and 67 deletions
+3 -2
View File
@@ -5,13 +5,14 @@ import {
Elements,
FlowElement,
isEdge,
MiniMap,
Node,
Position,
SnapGrid,
useNodesState,
useVueFlow,
VueFlow,
Controls,
MiniMap,
} from '~/index'
const elements = ref<Elements>([])
@@ -84,7 +85,7 @@ onPaneReady((flowInstance) => {
<template>
<VueFlow
v-model="elements"
:style="`background: ${bgColor}`"
:style="{ backgroundColor: bgColor }"
:connection-mode="ConnectionMode.Loose"
:connection-line-style="connectionLineStyle"
:snap-to-grid="true"