Browse Source

fix: createWorkflowNodeByType 新增节点时,json上的参数会被丢失

sanmaopep 10 months ago
parent
commit
acaaef7dbd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/canvas-engine/free-layout-core/src/workflow-document.ts

+ 1 - 0
packages/canvas-engine/free-layout-core/src/workflow-document.ts

@@ -320,6 +320,7 @@ export class WorkflowDocument extends FlowDocument {
     }
     return this.createWorkflowNode(
       {
+        ...json,
         id,
         type,
         meta: { position, ...json?.meta }, // TODO title 和 meta 要从注册数据去拿