chore: 更新vue-flow,相关兼容处理

This commit is contained in:
xiaoxian521
2025-04-06 16:51:05 +08:00
parent f5cc6d2ff4
commit 881366c78b
3 changed files with 21 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { toRef } from "vue";
import { Handle, useHandleConnections } from "@vue-flow/core";
import { Handle, useNodeConnections } from "@vue-flow/core";
const props = defineProps({
data: {
@@ -15,12 +15,12 @@ const props = defineProps({
}
});
const sourceConnections = useHandleConnections({
type: "target"
const sourceConnections = useNodeConnections({
handleType: "target"
});
const targetConnections = useHandleConnections({
type: "source"
const targetConnections = useNodeConnections({
handleType: "source"
});
const isSender = toRef(() => sourceConnections.value.length <= 0);