chore(examples): cleanup examples

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-25 16:17:04 +01:00
committed by Braks
parent bac98930da
commit 48c4f0a0eb
4 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import type { Elements, FlowEvents, VueFlowStore } from '@vue-flow/core'
import { VueFlow, addEdge, isNode } from '@vue-flow/core'
import { VueFlow, isNode } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
@@ -50,7 +50,7 @@ export default defineComponent({
this.instance = instance as any
},
onConnect(params: FlowEvents['connect']) {
addEdge(params, this.elements)
this.instance?.addEdges([params])
},
},
})