feat(workflow): refine strokeDasharray logic for temporary edges

This commit is contained in:
zhsama 2026-01-04 20:59:33 +08:00
parent 8834e6e531
commit a6ce6a249b
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ import {
useAvailableBlocks,
useNodesInteractions,
} from './hooks'
import { NodeRunningStatus } from './types'
import { BlockEnum, NodeRunningStatus } from './types'
import { getEdgeColor } from './utils'
const CustomEdge = ({
@ -136,7 +136,7 @@ const CustomEdge = ({
stroke,
strokeWidth: 2,
opacity: data._dimmed ? 0.3 : (data._waitingRun ? 0.7 : 1),
strokeDasharray: data._isTemp ? '8 8' : undefined,
strokeDasharray: (data._isTemp && data.sourceType !== BlockEnum.Group && data.targetType !== BlockEnum.Group) ? '8 8' : undefined,
}}
/>
<EdgeLabelRenderer>