@@ -19,12 +28,20 @@
node: { required: true, type: Object },
tier: { default: 1, type: Number }
})
+ const superiorNode = computed(() => {
+ return stateManager.getNodeById(props.node.data.superiorID)
+ })
const list = ref([
{
tier: NODE_DATATIER.TO_REAL_STYLE,
type: NODE_DATATYPE.TO_REAL_STYLE,
title: 'To Real Style'
},
+ {
+ tier: NODE_DATATIER.TO_REAL_VARIANTS,
+ type: NODE_DATATYPE.TO_REAL_VARIANTS,
+ title: 'To Real Variants'
+ },
{
tier: NODE_DATATIER.SURFACE_EDIT,
type: NODE_DATATYPE.SURFACE_EDIT,
diff --git a/src/components/Canvas/FlowCanvas/components/nodes/cards/index.vue b/src/components/Canvas/FlowCanvas/components/nodes/cards/index.vue
index 6c23925..ae77958 100644
--- a/src/components/Canvas/FlowCanvas/components/nodes/cards/index.vue
+++ b/src/components/Canvas/FlowCanvas/components/nodes/cards/index.vue
@@ -36,6 +36,7 @@
import { computed, ref, useAttrs, onMounted, inject, watch } from 'vue'
import CardsSelect from './cards-select.vue'
import ToRealStyle from './to-real-style.vue'
+ import ToRealVariants from './to-real-variants.vue'
import SurfaceEdit from './surface-edit.vue'
import FastMode from './fast-mode.vue'
import SceneComposition from './scene-composition.vue'
@@ -69,6 +70,13 @@
component: ToRealStyle,
api: toRealStyleApi
},
+ {
+ tier: NODE_DATATIER.TO_REAL_VARIANTS,
+ type: NODE_DATATYPE.TO_REAL_VARIANTS,
+ title: 'To Real Variants',
+ component: ToRealVariants,
+ api: toRealStyleApi
+ },
{
tier: NODE_DATATIER.Fast_MODE,
type: NODE_DATATYPE.Fast_MODE,
@@ -197,6 +205,7 @@
data: {
superiorID: attrs.node.id,
superiorNodeType: attrs.node?.data?.type,
+ superiorGenerateImg: superiorNodeUrl || null,
createIndexPosition: index + subordNodes.length,
tier: tier,
isActive: index == 0 && subordNodes.length == 0,
diff --git a/src/components/Canvas/FlowCanvas/components/nodes/cards/to-real-variants.vue b/src/components/Canvas/FlowCanvas/components/nodes/cards/to-real-variants.vue
new file mode 100644
index 0000000..28e95bf
--- /dev/null
+++ b/src/components/Canvas/FlowCanvas/components/nodes/cards/to-real-variants.vue
@@ -0,0 +1,98 @@
+
+
+
+
Prompt
+
+
+
Mode
+
+
Size
+
+
+
+
+
+
+
diff --git a/src/components/Canvas/FlowCanvas/components/nodes/result-image.vue b/src/components/Canvas/FlowCanvas/components/nodes/result-image.vue
index a6e5a23..5f896fd 100644
--- a/src/components/Canvas/FlowCanvas/components/nodes/result-image.vue
+++ b/src/components/Canvas/FlowCanvas/components/nodes/result-image.vue
@@ -17,7 +17,7 @@
-