Closed shanEr-f closed 2 years ago
bug:如果节点宽度在宽的情况下会紧凑一起,后来我在源码中发现,您在组件中 new TreeChartCore 中少传了 treeConfig 的配置,导致组件一直都是默认的配置
// 我的建议 init() { this.treeChartCore = new TreeChartCore({ svgElement: this.$refs.svg, domElement: this.$refs.domContainer, treeContainer: this.$refs.container, dataset: this.dataset, direction: this.direction, treeConfig: this.config }) this.treeChartCore.init() this.nodeDataList = this.treeChartCore.getNodeDataList() this.initialTransformStyle = this.treeChartCore.getInitialTransformStyle() }
@xiaoGe-f Hi, 感谢你的提醒,在这个版本fix了:
@ssthouse/vue-tree-chart@0.6.5
VueTree.vue