File tree 3 files changed +4
-0
lines changed 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ module.exports = {
43
43
} )
44
44
exactActiveA . forEach ( i => {
45
45
browser . assert . cssClassPresent ( `li:nth-child(${ i } ) a` , 'router-link-exact-active' )
46
+ . assert . cssClassPresent ( `li:nth-child(${ i } ) a` , 'router-link-active' )
46
47
} )
47
48
exactActiveLI && exactActiveLI . forEach ( i => {
48
49
browser . assert . cssClassPresent ( `li:nth-child(${ i } )` , 'router-link-exact-active' )
50
+ . assert . cssClassPresent ( `li:nth-child(${ i } )` , 'router-link-active' )
49
51
} )
50
52
}
51
53
}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export interface RouterOptions {
49
49
mode ?: RouterMode ;
50
50
base ?: string ;
51
51
linkActiveClass ?: string ;
52
+ linkExactActiveClass ?: string ;
52
53
parseQuery ?: ( query : string ) => Object ;
53
54
stringifyQuery ?: ( query : Object ) => string ;
54
55
scrollBehavior ?: (
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const router = new VueRouter({
41
41
mode : "history" ,
42
42
base : "/" ,
43
43
linkActiveClass : "active" ,
44
+ linkExactActiveClass : "exact-active" ,
44
45
scrollBehavior : ( to , from , savedPosition ) => {
45
46
if ( from . path === "/" ) {
46
47
return { selector : "#app" } ;
You can’t perform that action at this time.
0 commit comments