fix: pass SmoothStepEdge component instead of string to default-edge-type

This commit is contained in:
2026-06-08 12:49:42 +08:00
parent a008c927a5
commit e323f7973a

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, watch, nextTick } from 'vue'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { VueFlow, useVueFlow, SmoothStepEdge } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import { Controls } from '@vue-flow/controls'
import '@vue-flow/core/dist/style.css'
@@ -108,7 +108,7 @@ onConnect((conn: Connection) => {
<VueFlow
:nodes="nodes"
:edges="edges"
default-edge-type="smoothstep"
:default-edge-type="SmoothStepEdge"
:min-zoom="0.2"
:max-zoom="2"
>