File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/docs/.vuepress/theme-coreui/src/client/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { h } from 'vue'
2- import type { FunctionalComponent , VNode } from 'vue'
2+ import type { VNode } from 'vue'
33import { RouterLink , useRoute } from 'vue-router'
44import type { RouteLocationNormalizedLoaded } from 'vue-router'
55import type { ResolvedSidebarItem } from '../../shared'
66
77import { 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/'
1010import { CIcon } from '@coreui/icons-vue'
1111
1212const 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 : ( ) => [
You can’t perform that action at this time.
0 commit comments