fix
This commit is contained in:
@@ -53,15 +53,14 @@
|
|||||||
const nodes = computed(() => props.stateManager.nodes.value)
|
const nodes = computed(() => props.stateManager.nodes.value)
|
||||||
const isSubord = computed(() => nodes.value.some((v) => v.data.superiorID === props.node.id))
|
const isSubord = computed(() => nodes.value.some((v) => v.data.superiorID === props.node.id))
|
||||||
const tier = computed(() => Number(props.node?.data?.tier || 0))
|
const tier = computed(() => Number(props.node?.data?.tier || 0))
|
||||||
const isReturned = computed(() => {
|
// const isReturned = computed(() => {
|
||||||
return props.node.data.type == 'result-image' && props.node.data.data.imageProcessTasks[0].status == 'RETURNED'
|
// return props.node.data.type == NODE_DATATYPE.RESULT_IMAGE && props.node.data.data.imageProcessTasks[0].status == 'RETURNED'
|
||||||
})
|
// })
|
||||||
const isAdd = computed(
|
const isAdd = computed(
|
||||||
() =>
|
() =>
|
||||||
!isSubord.value &&
|
!isSubord.value &&
|
||||||
NODE_DATATYPE.RESULT_IMAGE === props.node.data.type &&
|
NODE_DATATYPE.RESULT_IMAGE === props.node.data.type &&
|
||||||
!(tier.value === NODE_DATATIER.TO_3VIEW) &&
|
!(tier.value === NODE_DATATIER.TO_3VIEW)
|
||||||
isReturned.value
|
|
||||||
)
|
)
|
||||||
const onAdd = () => {
|
const onAdd = () => {
|
||||||
const tier_ = tier.value + 1
|
const tier_ = tier.value + 1
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
stateManager.tool.value === TOOLS.TEXT
|
stateManager.tool.value === TOOLS.TEXT
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<!-- <component
|
<component
|
||||||
:is="components[node.data.component]"
|
:is="components[node.data.component]"
|
||||||
:class="{ active: stateManager.activeNodeID.value === node.id }"
|
:class="{ active: stateManager.activeNodeID.value === node.id }"
|
||||||
:active="stateManager.activeNodeID.value === node.id"
|
:active="stateManager.activeNodeID.value === node.id"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
@update-data="(v) => (node.data.data = v)"
|
@update-data="(v) => (node.data.data = v)"
|
||||||
@bring-to-font="bringToFont(node.id)"
|
@bring-to-font="bringToFont(node.id)"
|
||||||
@send-to-back="sendToBack(node.id)"
|
@send-to-back="sendToBack(node.id)"
|
||||||
/> -->
|
/>
|
||||||
</node>
|
</node>
|
||||||
</template>
|
</template>
|
||||||
</VueFlow>
|
</VueFlow>
|
||||||
|
|||||||
Reference in New Issue
Block a user