Add missing isActive method
parent
52f5c5a09a
commit
6ac123cac1
|
@ -72,6 +72,9 @@ export default {
|
|||
index: index
|
||||
});
|
||||
},
|
||||
isActive(item) {
|
||||
return this.activeRoute.startsWith(item.to);
|
||||
},
|
||||
getItemClass(item, index) {
|
||||
return ['p-tabmenuitem', item.class, {
|
||||
'p-highlight': this.d_activeIndex === index,
|
||||
|
@ -115,6 +118,11 @@ export default {
|
|||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
activeRoute() {
|
||||
return this.$route.path;
|
||||
}
|
||||
},
|
||||
directives: {
|
||||
'ripple': Ripple
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue