Capital/components/docs/TableOfContents.vue
2024-09-28 00:28:40 +08:00

14 lines
431 B
Vue

<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>