Explorar el Código

chore: 移除无用变量

hkshu12 hace 5 años
padre
commit
26900edd45
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      src/components/Tree.vue

+ 0 - 5
src/components/Tree.vue

@@ -34,8 +34,6 @@ import TreeNode from './TreeNode.vue';
 // 容器宽高
 const HEIGHT = 700;
 const WIDTH = 1000;
-const MARGIN_TOP = 80;
-const MARGIN_LEFT = 100;
 const TREE_MAX_HEIGHT = 4;
 const NODE_STYLE = {
   width: 250,
@@ -124,9 +122,6 @@ export default {
       WIDTH,
       TREE_MAX_HEIGHT,
       NODE_STYLE,
-      parent2children: {},
-      depth2node: {},
-      layout: {},
       ctx: null,
     };
   },