Capital/components/docs/TableOfContentLinks.vue

12 lines
357 B
Vue
Raw Normal View History

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