File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,26 @@ const CNavItem = defineComponent({
8
8
...CNavLink . props ,
9
9
} ,
10
10
setup ( props , { slots } ) {
11
- const children = ( ) =>
12
- props . href
13
- ? h (
14
- CNavLink ,
15
- {
16
- active : props . active ,
17
- component : props . component ,
18
- disabled : props . disabled ,
19
- href : props . href ,
20
- to : props . to ,
21
- } ,
22
- slots . default && slots . default ( ) ,
23
- )
24
- : slots . default && slots . default ( )
25
11
return ( ) =>
26
12
h (
27
13
'li' ,
28
14
{
29
15
class : 'nav-item' ,
30
16
} ,
31
- children ( ) ,
17
+ props . href
18
+ ? h (
19
+ CNavLink ,
20
+ {
21
+ active : props . active ,
22
+ component : props . component ,
23
+ disabled : props . disabled ,
24
+ href : props . href ,
25
+ } ,
26
+ {
27
+ default : ( ) => slots . default && slots . default ( ) ,
28
+ } ,
29
+ )
30
+ : slots . default && slots . default ( ) ,
32
31
)
33
32
} ,
34
33
} )
You can’t perform that action at this time.
0 commit comments