Skip to content

Commit be57e51

Browse files
committed
chore(docs): cleanup connection radius example
1 parent 27f54fd commit be57e51

File tree

1 file changed

+3
-3
lines changed
  • docs/examples/connection-radius

1 file changed

+3
-3
lines changed

docs/examples/connection-radius/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 ConnectionLine from './SnappableConnectionLine.vue'
55
6-
const elements = ref([
6+
const nodes = ref([
77
{
88
id: '1',
99
label: 'Node 1',
@@ -23,7 +23,7 @@ const elements = ref([
2323
</script>
2424

2525
<template>
26-
<VueFlow v-model="elements" :connection-radius="30" auto-connect fit-view-on-init>
26+
<VueFlow :nodes="nodes" :connection-radius="30" auto-connect fit-view-on-init>
2727
<template #connection-line="{ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition }">
2828
<ConnectionLine
2929
:source-x="sourceX"

0 commit comments

Comments
 (0)