This commit is contained in:
X1627315083@163.com
2026-03-13 15:24:00 +08:00
parent 870afa2872
commit fcfa1eb7b2
2 changed files with 8 additions and 9 deletions

View File

@@ -53,15 +53,14 @@
const nodes = computed(() => props.stateManager.nodes.value)
const isSubord = computed(() => nodes.value.some((v) => v.data.superiorID === props.node.id))
const tier = computed(() => Number(props.node?.data?.tier || 0))
const isReturned = computed(() => {
return props.node.data.type == 'result-image' && props.node.data.data.imageProcessTasks[0].status == 'RETURNED'
})
// const isReturned = computed(() => {
// return props.node.data.type == 'result-image' && props.node.data.data.imageProcessTasks[0].status == 'RETURNED'
// })
const isAdd = computed(
() =>
!isSubord.value &&
NODE_DATATYPE.RESULT_IMAGE === props.node.data.type &&
!(tier.value === NODE_DATATIER.TO_3VIEW) &&
isReturned.value
!(tier.value === NODE_DATATIER.TO_3VIEW)
)
const onAdd = () => {
const tier_ = tier.value + 1

View File

@@ -17,7 +17,7 @@
:style="{ '--custom-cursor': stateManager.cursor.value }"
>
<template v-for="v in nodeTypes" :key="v" #[`node-${v}`]="node">
<!-- <node
<node
:type="v"
:stateManager="stateManager"
:node="node"
@@ -26,7 +26,7 @@
stateManager.tool.value === TOOLS.TEXT
"
>
<component
<!-- <component
:is="components[node.data.component]"
:class="{ active: stateManager.activeNodeID.value === node.id }"
:active="stateManager.activeNodeID.value === node.id"
@@ -40,8 +40,8 @@
@update-data="(v) => (node.data.data = v)"
@bring-to-font="bringToFont(node.id)"
@send-to-back="sendToBack(node.id)"
/>
</node> -->
/> -->
</node>
</template>
</VueFlow>
</div>