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({
88 ...CNavLink . props ,
99 } ,
1010 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 ( )
2511 return ( ) =>
2612 h (
2713 'li' ,
2814 {
2915 class : 'nav-item' ,
3016 } ,
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 ( ) ,
3231 )
3332 } ,
3433} )
You can’t perform that action at this time.
0 commit comments