Files
vue-flow/examples/CustomConnectionLine/CustomConnectionLine.vue
2022-04-04 21:42:48 +02:00

22 lines
516 B
Vue

<script lang="ts" setup>
import ConnectionLine from './ConnectionLine.vue'
import { VueFlow, Background, BackgroundVariant, Elements } from '@braks/vue-flow'
const elements = ref<Elements>([
{
id: '1',
type: 'input',
label: 'Node 1',
position: { x: 250, y: 5 },
},
])
</script>
<template>
<VueFlow v-model="elements">
<template #connection-line="props">
<ConnectionLine v-bind="props" />
</template>
<Background :variant="BackgroundVariant.Lines" />
</VueFlow>
</template>