Skip to content

Commit 27f54fd

Browse files
committed
chore(docs): cleanup connection line example
1 parent 3c8182e commit 27f54fd

File tree

1 file changed

+3
-3
lines changed
  • docs/examples/connectionline

1 file changed

+3
-3
lines changed

docs/examples/connectionline/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup>
2-
import { VueFlow } from '@vue-flow/core'
32
import { ref } from 'vue'
3+
import { VueFlow } from '@vue-flow/core'
44
import CustomConnectionLine from './CustomConnectionLine.vue'
55
6-
const elements = ref([
6+
const nodes = ref([
77
{
88
id: '1',
99
type: 'input',
@@ -14,7 +14,7 @@ const elements = ref([
1414
</script>
1515

1616
<template>
17-
<VueFlow v-model="elements">
17+
<VueFlow :nodes="nodes">
1818
<template #connection-line="{ sourceX, sourceY, targetX, targetY }">
1919
<CustomConnectionLine :source-x="sourceX" :source-y="sourceY" :target-x="targetX" :target-y="targetY" />
2020
</template>

0 commit comments

Comments
 (0)