From 1b8239f38e2c330040f2652201dab67177d0e619 Mon Sep 17 00:00:00 2001 From: panxinying Date: Thu, 3 Sep 2026 17:25:16 +0800 Subject: [PATCH] feat: variable assign node --- .../icons/variable-assign-node-icon.vue | 6 + .../nodes/variable-assign-node/index.ts | 11 + .../nodes/variable-assign-node/index.vue | 197 ++++++++++++++++++ 3 files changed, 214 insertions(+) create mode 100644 ui/src/workflow-canvas/icons/variable-assign-node-icon.vue create mode 100644 ui/src/workflow-canvas/nodes/variable-assign-node/index.ts create mode 100644 ui/src/workflow-canvas/nodes/variable-assign-node/index.vue diff --git a/ui/src/workflow-canvas/icons/variable-assign-node-icon.vue b/ui/src/workflow-canvas/icons/variable-assign-node-icon.vue new file mode 100644 index 00000000000..7ea4a139f8c --- /dev/null +++ b/ui/src/workflow-canvas/icons/variable-assign-node-icon.vue @@ -0,0 +1,6 @@ + + diff --git a/ui/src/workflow-canvas/nodes/variable-assign-node/index.ts b/ui/src/workflow-canvas/nodes/variable-assign-node/index.ts new file mode 100644 index 00000000000..b2202f9fefa --- /dev/null +++ b/ui/src/workflow-canvas/nodes/variable-assign-node/index.ts @@ -0,0 +1,11 @@ +import VariableAssignNodeVue from './index.vue' +import { WorkflowNodeModel, WorkflowNodeView } from '@/workflow-canvas/core/workflow-node' +import { WorkflowNodeType } from '@/workflow-canvas/types' + +class VariableAssignNodeView extends WorkflowNodeView { + constructor(props: ConstructorParameters[0]) { + super(props, VariableAssignNodeVue) + } +} + +export default { type: WorkflowNodeType.VariableAssignNode, model: WorkflowNodeModel, view: VariableAssignNodeView } diff --git a/ui/src/workflow-canvas/nodes/variable-assign-node/index.vue b/ui/src/workflow-canvas/nodes/variable-assign-node/index.vue new file mode 100644 index 00000000000..466c7ac9143 --- /dev/null +++ b/ui/src/workflow-canvas/nodes/variable-assign-node/index.vue @@ -0,0 +1,197 @@ + + +