|
|
@ -18,7 +18,7 @@ export const SideBarLink: FunctionalComponent<{
|
|
|
|
const text = props.item.text
|
|
|
|
const text = props.item.text
|
|
|
|
const link = resolveLink(site.value.base, props.item.link)
|
|
|
|
const link = resolveLink(site.value.base, props.item.link)
|
|
|
|
const children = (props.item as DefaultTheme.SideBarGroup).children
|
|
|
|
const children = (props.item as DefaultTheme.SideBarGroup).children
|
|
|
|
const active = isActive(route, link)
|
|
|
|
const active = isActive(route, props.item.link)
|
|
|
|
const childItems = createChildren(active, children, headers)
|
|
|
|
const childItems = createChildren(active, children, headers)
|
|
|
|
|
|
|
|
|
|
|
|
return h('li', { class: 'sidebar-link' }, [
|
|
|
|
return h('li', { class: 'sidebar-link' }, [
|
|
|
|