-
-
+
+
拆分变量
- *
-
+ *
+
添加
-
+
- {{ row.field }}
+ {{ row.field }}
-
+
- {{ row.label }}
+ {{ row.label }}
-
+
-
+
-
+
-
+
+
diff --git a/ui/src/workflow-canvas/nodes/variable-splitting-node/index.ts b/ui/src/workflow-canvas/nodes/variable-splitting-node/index.ts
index 5a8cb671a90..4fd045ecd10 100644
--- a/ui/src/workflow-canvas/nodes/variable-splitting-node/index.ts
+++ b/ui/src/workflow-canvas/nodes/variable-splitting-node/index.ts
@@ -8,4 +8,12 @@ class VariableSplittingNodeView extends WorkflowNodeView {
}
}
-export default { type: WorkflowNodeType.VariableSplittingNode, model: WorkflowNodeModel, view: VariableSplittingNodeView }
+class VariableSplittingNodeModel extends WorkflowNodeModel {
+ override setAttributes() {
+ super.setAttributes()
+ this.width = 455
+ this.properties.width = 455
+ }
+}
+
+export default { type: WorkflowNodeType.VariableSplittingNode, model: VariableSplittingNodeModel, view: VariableSplittingNodeView }
diff --git a/ui/src/workflow-canvas/nodes/variable-splitting-node/index.vue b/ui/src/workflow-canvas/nodes/variable-splitting-node/index.vue
index b7d07549eb6..792354914b2 100644
--- a/ui/src/workflow-canvas/nodes/variable-splitting-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/variable-splitting-node/index.vue
@@ -1,27 +1,5 @@
-
-
- 节点设置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ui/src/workflow-canvas/nodes/video-understand-node/index.vue b/ui/src/workflow-canvas/nodes/video-understand-node/index.vue
index abaf52fb70c..4d47fb5ff48 100644
--- a/ui/src/workflow-canvas/nodes/video-understand-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/video-understand-node/index.vue
@@ -39,8 +39,6 @@ interface VideoUnderstandNodeForm {
}
const formRef = useTemplateRef
('formRef')
-const modelCascaderRef = useTemplateRef>('modelCascaderRef')
-const videoCascaderRef = useTemplateRef>('videoCascaderRef')
const store = useWorkflowStore(apiType)
const modelList = ref>([])
@@ -121,14 +119,9 @@ function validateModel(_rule: unknown, _value: unknown, callback: (error?: Error
)
}
-function validate() {
- return Promise.all([
- formData.value.model_id_type === 'reference' ? modelCascaderRef.value?.validate() : Promise.resolve(),
- videoCascaderRef.value?.validate(),
- formRef.value?.validate(),
- ]).catch((error) => Promise.reject({ node: model, errMessage: error }))
+async function validate() {
+ return formRef.value?.validate().catch((error) => Promise.reject({ node: model, errMessage: error }))
}
-
onMounted(() => {
model.validate = validate
store.getModelList({ model_type: 'IMAGE' }).then((data) => {
@@ -249,7 +242,6 @@ onMounted(() => {
:value-on-clear="0"
controls-position="right"
align="left"
- class="w-full!"
:step="1"
:step-strictly="true"
/>