sangtian152 / vue3-tree-org

基于vue3.x + typeScript 实现的组织架构图
MIT License
127 stars 17 forks source link

树状布局横向(TB状态)下,子节点希望可以支持自定义布局 #26

Open KTBOY opened 11 months ago

KTBOY commented 11 months ago

预期行为: image image 类似ant g6实现子节点右对齐功能

  treeGraph.node(function (node) {
        console.log(node.children);
      return {
        label: node.id,
        labelCfg: {
          offset: 10,
          position: node.children && node.children.length > 0 ? "" : "right"
        }
      };
    });
molong1995 commented 9 months ago

同问