Files
vue-flow/docs/examples/connectionline/App.vue
Braks d71de0a92d chore(docs): update example styles (#1469)
* chore(docs): update basic example styles

* chore(docs): update confirm delete example styles

* chore(docs): update dnd example styles

* chore(docs): update hidden example

* chore(docs): update update node example

* chore(docs): update node toolbar example styles

* chore(docs): update transition example styles

* chore(docs): cleanup basic example els

* chore(docs): cleanup examples
2024-06-10 23:51:47 +02:00

23 lines
546 B
Vue

<script setup>
import { ref } from 'vue'
import { VueFlow } from '@vue-flow/core'
import CustomConnectionLine from './CustomConnectionLine.vue'
const nodes = ref([
{
id: '1',
type: 'input',
data: { label: 'Node 1' },
position: { x: 250, y: 5 },
},
])
</script>
<template>
<VueFlow :nodes="nodes">
<template #connection-line="{ sourceX, sourceY, targetX, targetY }">
<CustomConnectionLine :source-x="sourceX" :source-y="sourceY" :target-x="targetX" :target-y="targetY" />
</template>
</VueFlow>
</template>