Sfoglia il codice sorgente

fix: 树节点位置偏移调整

hkshu12 5 anni fa
parent
commit
5c163ea66b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/TreeNode.vue

+ 1 - 1
src/components/TreeNode.vue

@@ -43,7 +43,7 @@ export default {
     containerStyle() {
       return {
         top: `${this.positionY * 130}px`,
-        left: `${280 * this.positionX}px`,
+        left: `${280 * this.positionX - 100}px`,
         width: `${this.nodeStyle.width + this.nodeStyle.padding * 2}px`,
         height: `${this.nodeStyle.height + this.nodeStyle.padding * 2}px`,
       };