diff --git a/src/client/theme-default/components/VPSidebarLink.vue b/src/client/theme-default/components/VPSidebarLink.vue index e4885502f857..330790eb99c9 100644 --- a/src/client/theme-default/components/VPSidebarLink.vue +++ b/src/client/theme-default/components/VPSidebarLink.vue @@ -5,29 +5,35 @@ import { useData } from 'vitepress' import { isActive } from '../support/utils.js' import VPLink from './VPLink.vue' -withDefaults(defineProps<{ item: DefaultTheme.SidebarItem; depth?: number }>(), { depth: 1 }) +withDefaults( + defineProps<{ item: DefaultTheme.SidebarItem; depth?: number }>(), + { depth: 1 } +) const { page, frontmatter } = useData() -const maxDepth = computed(() => frontmatter.value.sidebarDepth || Infinity) +const maxDepth = computed( + () => frontmatter.value.sidebarDepth || Infinity +) const closeSideBar = inject('close-sidebar') as () => void