mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
chore: 更新vue-flow,相关兼容处理
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user