Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zyycode opened this issue Dec 4, 2024 · 3 comments
Open

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

zyycode opened this issue Dec 4, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@zyycode
Copy link

zyycode commented Dec 4, 2024

发生了什么?

  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

@zyycode zyycode added the bug Something isn't working label Dec 4, 2024
@DymoneLewis DymoneLewis self-assigned this Dec 4, 2024
@DymoneLewis
Copy link
Collaborator

DymoneLewis commented Dec 10, 2024

从报错上看是传入的数据有循环引用导致的,这边用你提供的数据没有复现问题
🤔是否可以在你的项目里用JSON.stringify对你传入的数据序列化后再传入试试呢

@boyongjiong
Copy link
Collaborator

我们需要可复现 demo,最好是提供 codesandbox 示例。项目代码示例也可以。

否则通过描述无法定位问题,我们会做 issue 关闭处理

@zyycode
Copy link
Author

zyycode commented Dec 16, 2024

目前我就是数据通过JSON.stringify来处理的;我重现写个示例看看,项目代码在内网无法复制出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants