aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue
index 08b442c..5c33543 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,11 +9,12 @@ function addChildArrays(tree){
}
addChildArrays(tol);
-import TileTree from "./components/TileTree.vue";
+import {initTree} from './components/layout.js';
+import TileTree from './components/TileTree.vue';
export default {
data() {
return {
- tree: {tolNode: tol, children: []},
+ tree: initTree(tol, 1),
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight,
}
@@ -38,7 +39,7 @@ export default {
<template>
<div class="h-[100vh]">
- <tile-tree :treeIn="tree" :x="0" :y="0" :width="width" :height="height" isRoot></tile-tree>
+ <tile-tree :tree="tree" :x="0" :y="0" :width="width" :height="height" isRoot></tile-tree>
</div>
</template>