diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-06 18:43:13 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-06 18:43:13 +1100 |
| commit | 459ccef76902287ed0f8df2faf91b99bda82b091 (patch) | |
| tree | ca879b139746e945866ef469c1ed89163b32eaa6 /src/components/Tile.vue | |
| parent | 0e760e15180f7714ded5949cdb4a497311883199 (diff) | |
Reduce code redundancy by adding more info to layout-objects
Diffstat (limited to 'src/components/Tile.vue')
| -rw-r--r-- | src/components/Tile.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 1693349..5c78f5a 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -60,8 +60,8 @@ export default { {{tree.tolNode.name}} </div> <tile v-for="child in tree.children" :key="child.tolNode.name" :tree="child" - :x="layout[child.tolNode.name].x" :y="layout[child.tolNode.name].y" - :width="layout[child.tolNode.name].w" :height="layout[child.tolNode.name].h" + :x="layout.coords[child.tolNode.name].x" :y="layout.coords[child.tolNode.name].y" + :width="layout.coords[child.tolNode.name].w" :height="layout.coords[child.tolNode.name].h" @tile-clicked="onInnerTileClicked" @header-clicked="onInnerHeaderClicked" ></tile> </div> |
