Skip to content

Commit fcaf340

Browse files
committed
docs: update imports
1 parent 070b5e3 commit fcaf340

File tree

1 file changed

+3
-3
lines changed
  • packages/docs/.vuepress/theme-coreui/src/client/components

1 file changed

+3
-3
lines changed

packages/docs/.vuepress/theme-coreui/src/client/components/SidebarNav.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { h } from 'vue'
2-
import type { FunctionalComponent, VNode } from 'vue'
2+
import type { VNode } from 'vue'
33
import { RouterLink, useRoute } from 'vue-router'
44
import type { RouteLocationNormalizedLoaded } from 'vue-router'
55
import type { ResolvedSidebarItem } from '../../shared'
66

77
import { withBase } from '@vuepress/client'
88

9-
import { CBadge, CNavGroup, CNavItem, CSidebarNav } from './../../../../../../coreui-vue/src/index'
9+
import { CBadge, CNavGroup, CNavItem, CSidebarNav } from '@coreui/vue/src/'
1010
import { CIcon } from '@coreui/icons-vue'
1111

1212
const normalizePath = (path: string): string =>
@@ -47,8 +47,8 @@ const renderItem = (item: ResolvedSidebarItem): VNode => {
4747
return h(
4848
CNavGroup,
4949
{
50+
active: item.children.some((child) => isActiveItem(route, child)),
5051
compact: true,
51-
visible: item.children.some((child) => isActiveItem(route, child)),
5252
},
5353
{
5454
togglerContent: () => [

0 commit comments

Comments
 (0)