@@ -142,19 +176,19 @@ const toast = useToast();
const items = ref([
{
label: 'Personal',
- to: "/"
+ route: "/"
},
{
label: 'Seat',
- to: "/seat",
+ route: "/seat",
},
{
label: 'Payment',
- to: "/payment",
+ route: "/payment",
},
{
label: 'Confirmation',
- to: "/confirmation",
+ route: "/confirmation",
}
]);
const formObject = ref({});
diff --git a/doc/steps/RouterDoc.vue b/doc/steps/RouterDoc.vue
new file mode 100644
index 000000000..de745dd60
--- /dev/null
+++ b/doc/steps/RouterDoc.vue
@@ -0,0 +1,8 @@
+
+
+
+ Since v3.33.0 the vue-router dependency of menu components is deprecated and templating should be used to define router links instead. This approach provides flexibility to be able to use any kind of router link component such as
+ NuxtLink or router-link. Here is an example with vue-router.
+
+
+
diff --git a/doc/tieredmenu/RouterDoc.vue b/doc/tieredmenu/RouterDoc.vue
index 82394cdd2..597c49be1 100644
--- a/doc/tieredmenu/RouterDoc.vue
+++ b/doc/tieredmenu/RouterDoc.vue
@@ -2,7 +2,7 @@
Since v3.33.0 the vue-router dependency of menu components is deprecated and templating should be used to define router links instead. This approach provides flexibility to be able to use any kind of router link component such as
- NuxtLink or router-link.
+ NuxtLink or router-link. Here is an example with vue-router.
diff --git a/pages/steps.vue b/pages/steps.vue
index d7b183cdd..63547de31 100755
--- a/pages/steps.vue
+++ b/pages/steps.vue
@@ -15,6 +15,7 @@ import AccessibilityDoc from '@/doc/steps/AccessibilityDoc';
import BasicDoc from '@/doc/steps/BasicDoc';
import ImportDoc from '@/doc/steps/ImportDoc';
import InteractiveDoc from '@/doc/steps/InteractiveDoc';
+import RouterDoc from '@/doc/steps/RouterDoc';
import PTComponent from '@/doc/steps/pt/index.vue';
import ThemingDoc from '@/doc/steps/theming/index.vue';
@@ -37,6 +38,11 @@ export default {
label: 'Interactive',
component: InteractiveDoc
},
+ {
+ id: 'router',
+ label: 'Router',
+ component: RouterDoc
+ },
{
id: 'accessibility',
label: 'Accessibility',