Skip to content

[Bug Report]: 拖拽节点时,HTML Node View 报错 #1985

@zyycode

Description

@zyycode

发生了什么?

  1. 使用 dragNode 拖拽节点时传入,报错
    node 节点数据结构:
{
  id: 'Gateway_xxx',
  type: 'bpmn:serviceTask',
  properties: {
    meta: {
       title: '节点名称',
       icon: 'serviceTask',
      ouputColumnSegments: [{
        className: 'ColumnSegment',
        identifier: {
           value: 'mahineCode',
        },
        name: '机器码',
        owner: {
            owner: 'xxx',
        },
        properties: {
           className: 'xxxxx',
           source: 'dataSource'
        },
        sqlType: {
            className: 'BasicType',
            family: 'character'
         }
      }]
    },
    config: {
       name: '事件生成',
      componentName: 'GenerateSecureEvent',
    }
  }
}
image

说明:
在 dragNode 传入节点时,如果是直接传入节点对象也不行,需要把多层结构结构出来;猜测原因是节点结构复杂,导致底层监听报错
操作流程:

  1. 拖拽创建节点 使用 startDrag 传入 properties (properties为多层对象结构)
image 2. 自定义节点挂载Vue组件,传入 properties image

logicflow/core版本

2.0.7

logicflow/extension版本

2.0.11

logicflow/engine版本

No response

浏览器&环境

Chrome

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions