Explorar el Código

fix: 修复因高度间距不足而导致悬浮按钮被遮挡问题

Jinyao hace 5 años
padre
commit
92c59ce4b5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/components/TreeNode.vue

+ 2 - 2
src/components/TreeNode.vue

@@ -54,7 +54,7 @@ export default {
   computed: {
     containerStyle() {
       return {
-        top: `${this.positionY * 140}px`,
+        top: `${this.positionY * 180}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`,
@@ -101,7 +101,7 @@ export default {
   user-select: none;
   & .node-postfix {
     position: absolute;
-    bottom: 0px;
+    bottom: 10px;
     right: 25px;
     width: 100%;
     display: none;