{ if (readonly) { return; } showEdgePanel = true; currentEdge = e.edge; }} onbeforeconnect={(edge: any) => normalizeEdgeBeforeConnect(edge)} ondelete={readonly ? undefined : onDelete} onclick={(e) => { if (readonly) { return; } const el = e.target as HTMLElement; if (el.classList.contains("svelte-flow__edge-interaction") || el.classList.contains('panel-content') || el.closest('.panel-content')){ return } showEdgePanel = false; currentEdge = null; }} defaultEdgeOptions={{ type: 'flow', markerEnd: { type: MarkerType.ArrowClosed, width: 20, height: 20 } }} > {#if showEdgePanel}
边属性设置
边条件设置
{#if currentEdge?.data?.managedByConditionNode}
分支:{currentEdge?.data?.branchLabel || currentEdge?.data?.branchId || '-'}