فهرست منبع

chore: 移除无用变量

hkshu12 5 سال پیش
والد
کامیت
26900edd45
1فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  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,
     };
   },