homebox/frontend/components/Location/Tree/Root.vue
2024-03-01 11:21:45 -06:00

18 lines
368 B
Vue

<script setup lang="ts">
import type { 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>