Skip to content

[Bug]: 脑图树-子节点自动两侧分布 通过回调函数修改defaultEdge线的样式不生效 #7602

@youeyeso

Description

@youeyeso

Describe the bug / 问题描述

defaultEdge: {
type: 'cubic-horizontal', // 水平贝塞尔曲线
style: (cfg) => {
console.error('sadsdasdasdasd', cfg);
return {
stroke: '#497bff', // 设置边的颜色
lineWidth: 2, // 设置线宽(可选)
endArrow: true // 设置是否显示箭头(可选)
}
}
},

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

4.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for maintainerTriage or intervention needed from a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions