mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-19 05:26:31 +00:00
3d295b5132
* location tree API * test fixes * initial tree location elements * locations tree page * update meta-data * code-gen * store item display preferences * introduce basic table/card view elements * codegen * set parent location during location creation * add item support for tree query * refactor tree view * wip: location selector improvements * type gen * rename items -> search * remove various log statements * fix markdown rendering for description * update location selectors * fix tests * fix currency tests * formatting
18 lines
363 B
Vue
18 lines
363 B
Vue
<script setup lang="ts">
|
|
import { TreeItem } from "~~/lib/api/types/data-contracts";
|
|
|
|
type Props = {
|
|
locs: TreeItem[];
|
|
treeId: string;
|
|
};
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="p-4 border-2 root">
|
|
<LocationTreeNode v-for="item in locs" :key="item.id" :item="item" :tree-id="treeId" />
|
|
</div>
|
|
</template>
|
|
|
|
<style></style>
|