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 1
1
import { h } from 'vue'
2
- import type { FunctionalComponent , VNode } from 'vue'
2
+ import type { VNode } from 'vue'
3
3
import { RouterLink , useRoute } from 'vue-router'
4
4
import type { RouteLocationNormalizedLoaded } from 'vue-router'
5
5
import type { ResolvedSidebarItem } from '../../shared'
6
6
7
7
import { withBase } from '@vuepress/client'
8
8
9
- import { CBadge , CNavGroup , CNavItem , CSidebarNav } from './../../../../../../ coreui- vue/src/index '
9
+ import { CBadge , CNavGroup , CNavItem , CSidebarNav } from '@ coreui/ vue/src/'
10
10
import { CIcon } from '@coreui/icons-vue'
11
11
12
12
const normalizePath = ( path : string ) : string =>
@@ -47,8 +47,8 @@ const renderItem = (item: ResolvedSidebarItem): VNode => {
47
47
return h (
48
48
CNavGroup ,
49
49
{
50
+ active : item . children . some ( ( child ) => isActiveItem ( route , child ) ) ,
50
51
compact : true ,
51
- visible : item . children . some ( ( child ) => isActiveItem ( route , child ) ) ,
52
52
} ,
53
53
{
54
54
togglerContent : ( ) => [
You can’t perform that action at this time.
0 commit comments