Capital/components/docs/TableOfContents.vue

14 lines
431 B
Vue
Raw Permalink Normal View History

2024-09-27 16:28:40 +00:00
<template>
<v-list density="compact" nav color="primary">
<template v-for="link in links">
<docs-table-of-content-link :link="link" :padding="props.padding" />
<docs-table-of-content-links v-if="link.children" :links="link.children" :padding="(props.padding ?? 0) + 2" />
</template>
</v-list>
</template>
<script setup lang="ts">
const props = defineProps<{ links: any[], padding?: number }>()
</script>