fix: 修复 AgentRun 导图连线与详情遮挡

This commit is contained in:
root
2026-07-16 12:57:14 +02:00
parent 2f9281c589
commit ebd4dccdc1
3 changed files with 29 additions and 4 deletions
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, nextTick } from "vue";
import dagre from "@dagrejs/dagre";
import { MarkerType, Position, VueFlow, useVueFlow, type Edge, type Node } from "@vue-flow/core";
import { Handle, MarkerType, Position, VueFlow, useVueFlow, type Edge, type Node } from "@vue-flow/core";
import { Focus, Minus, Plus } from "lucide-vue-next";
import StatusBadge from "@/components/common/StatusBadge.vue";
import {
@@ -119,6 +119,8 @@ async function fit(): Promise<void> {
@keydown.enter.prevent="activate(data.row)"
@keydown.space.prevent="activate(data.row)"
>
<Handle v-if="data.row.parentId" type="target" :position="Position.Left" />
<Handle v-if="data.row.childCount > 0" type="source" :position="Position.Right" />
<header>
<span>{{ nodeLabel(data.row.kind) }}</span>
<StatusBadge v-if="data.row.status" :status="agentObserverStatusToken(data.row.status).tone" :label="agentObserverStatusToken(data.row.status).label" />