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 @@ + + + + + + + + + + 变量* + + + + + + + + + + 赋值* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 添加变量 + + + + + +