fix(flow-editor): NodeList 插入的 OutletLanes 独立 v-if,修被截断的 NotifyCard 条件链(浏览器冒烟发现:无出口审批落进 ConditionBox v-else 分支致 vnode 崩溃)
This commit is contained in:
@@ -21,9 +21,9 @@ defineProps<{
|
|||||||
<template v-for="(item, i) in items" :key="item.uid">
|
<template v-for="(item, i) in items" :key="item.uid">
|
||||||
<NodeCard v-if="item.kind === 'approval'" :node="item" />
|
<NodeCard v-if="item.kind === 'approval'" :node="item" />
|
||||||
<OutletLanes v-if="item.kind === 'approval' && item.outlets && item.outlets.length >= 2" :node="item" />
|
<OutletLanes v-if="item.kind === 'approval' && item.outlets && item.outlets.length >= 2" :node="item" />
|
||||||
<NotifyCard v-else-if="item.kind === 'notify'" :node="item" />
|
<NotifyCard v-if="item.kind === 'notify'" :node="item" />
|
||||||
<ParallelBox v-else-if="item.kind === 'parallel'" :node="item" />
|
<ParallelBox v-else-if="item.kind === 'parallel'" :node="item" />
|
||||||
<ConditionBox v-else :node="item" />
|
<ConditionBox v-else-if="item.kind === 'condition'" :node="item" />
|
||||||
<PlusButton :container="container" :index="i + 1" />
|
<PlusButton :container="container" :index="i + 1" />
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user