wujingjing
2024-12-11 3229f6a34f4982d1a551d86e68d313482e33f701
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script setup lang="ts">
import { BezierEdge } from '@vue-flow/core';
 
// props were passed from the slot using `v-bind="customEdgeProps"`
const props = defineProps(['sourceX', 'sourceY', 'targetX', 'targetY', 'sourcePosition', 'targetPosition']);
</script>
 
<script lang="ts">
export default {
    name: 'CustomEdge',
};
</script>
 
<template>
    <BezierEdge
        :source-x="sourceX"
        :source-y="sourceY"
        :target-x="targetX"
        :target-y="targetY"
        :source-position="sourcePosition"
        :target-position="targetPosition"
    />
</template>