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 -3
View File
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import CustomInput from './CustomInput.vue'
import CustomNode from './CustomNode.vue'
import { VueFlow, Connection, OnConnectStartParams, FlowInstance, useElementsState } from '~/index'
import { VueFlow, Connection, OnConnectStartParams, FlowInstance, useVueFlow } from '~/index'
const { nodes, edges, addEdges } = useElementsState({
const { nodes, edges, addEdges } = useVueFlow({
nodes: [
{ id: '0', type: 'custominput', position: { x: 0, y: 150 }, isValidTargetPos: (connection) => connection.target === 'B' },
{
@@ -28,7 +28,6 @@ const onConnect = (params: Connection) => {
</script>
<template>
<VueFlow
v-model="elements"
:select-nodes-on-drag="false"
class="validationflow"
@connect="onConnect"