You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
410 B
Vue
26 lines
410 B
Vue
<script setup lang="ts">
|
|
import type { DefaultTheme } from 'vitepress'
|
|
|
|
import TreeItem from './TreeItem.vue'
|
|
|
|
defineProps<{
|
|
items: DefaultTheme.SidebarItem[]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<ul v-if="items" class="list">
|
|
<TreeItem
|
|
v-for="(item, index) in items"
|
|
:key="index"
|
|
:item="item"
|
|
/>
|
|
</ul>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.list {
|
|
padding-left: 0;
|
|
list-style: none;
|
|
}
|
|
</style> |