mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Router doc updates
This commit is contained in:
parent
10a7990499
commit
7cdedb794c
3 changed files with 14 additions and 14 deletions
|
@ -5,7 +5,7 @@
|
|||
<i>NuxtLink</i> or <i>router-link</i>. Here is an example with vue-router.
|
||||
</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<!-- <div class="card">
|
||||
<TabMenu v-model:activeIndex="active" :model="items">
|
||||
<template #item="{ label, item, props }">
|
||||
<router-link v-if="item.route" v-slot="routerProps" :to="item.route" custom>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</template>
|
||||
</TabMenu>
|
||||
<router-view />
|
||||
</div>
|
||||
</div> -->
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
|
@ -280,14 +280,14 @@ export default {
|
|||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
$route() {
|
||||
this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
|
||||
}
|
||||
// watch: {
|
||||
// $route() {
|
||||
// this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
|
||||
// }
|
||||
// },
|
||||
// mounted() {
|
||||
// this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path);
|
||||
// }
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue