We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8182e commit 27f54fdCopy full SHA for 27f54fd
docs/examples/connectionline/App.vue
@@ -1,9 +1,9 @@
1
<script setup>
2
-import { VueFlow } from '@vue-flow/core'
3
import { ref } from 'vue'
+import { VueFlow } from '@vue-flow/core'
4
import CustomConnectionLine from './CustomConnectionLine.vue'
5
6
-const elements = ref([
+const nodes = ref([
7
{
8
id: '1',
9
type: 'input',
@@ -14,7 +14,7 @@ const elements = ref([
14
</script>
15
16
<template>
17
- <VueFlow v-model="elements">
+ <VueFlow :nodes="nodes">
18
<template #connection-line="{ sourceX, sourceY, targetX, targetY }">
19
<CustomConnectionLine :source-x="sourceX" :source-y="sourceY" :target-x="targetX" :target-y="targetY" />
20
</template>
0 commit comments