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
+2 -4
View File
@@ -1,11 +1,9 @@
<script lang="ts" setup>
import { ConnectionMode, useElementsState, useVueFlow, VueFlow, MiniMap, Background, Controls } from '~/index'
import { ConnectionMode, useVueFlow, VueFlow, MiniMap, Background, Controls } from '~/index'
const { onConnect } = useVueFlow({
const { onConnect, nodes, edges, addEdges } = useVueFlow({
fitViewOnInit: true,
connectionMode: ConnectionMode.Loose,
})
const { nodes, edges, addEdges } = useElementsState({
nodes: [
{ id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 5 }, class: 'light' },
{