Explorar o código

fix: 树节点位置偏移调整

hkshu12 %!s(int64=5) %!d(string=hai) anos
pai
achega
5c163ea66b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/TreeNode.vue

+ 1 - 1
src/components/TreeNode.vue

@@ -43,7 +43,7 @@ export default {
     containerStyle() {
     containerStyle() {
       return {
       return {
         top: `${this.positionY * 130}px`,
         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`,
         width: `${this.nodeStyle.width + this.nodeStyle.padding * 2}px`,
         height: `${this.nodeStyle.height + this.nodeStyle.padding * 2}px`,
         height: `${this.nodeStyle.height + this.nodeStyle.padding * 2}px`,
       };
       };