Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

534 B
Raw Blame
<template>
  <li>
    <a :href="node.link">{{ node.title }}</a>
    <ul v-if="node.childrens?.length">
      <NodeTOCLevel v-for="child in node.childrens" :key="child.link" :node="child" />
    </ul>
  </li>
</template>

<script lang="ts" setup>
interface Node {
  title: string;
  link: string;
  childrens?: Node[];
}

defineProps<{ node: Node }>();
</script>

<style scoped>
a {
  opacity: 0.85;
}

li {
  margin-top: 3px;
  padding: 0;
  font-size: 12px;
  list-style: none;
}

ul {
  margin: 0;
  padding: 0 0 0 15px;
}
</style>