From 81b2102c5657becd4bef0eb5a7f1b6eb5c0452ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 30 Aug 2023 17:38:19 +0300 Subject: [PATCH] Steps docs for router --- doc/steps/BasicDoc.vue | 84 +++++++++++++++++++++++++++++------- doc/steps/InteractiveDoc.vue | 74 ++++++++++++++++++++++--------- doc/steps/RouterDoc.vue | 8 ++++ doc/tieredmenu/RouterDoc.vue | 2 +- pages/steps.vue | 6 +++ 5 files changed, 137 insertions(+), 37 deletions(-) create mode 100644 doc/steps/RouterDoc.vue diff --git a/doc/steps/BasicDoc.vue b/doc/steps/BasicDoc.vue index 181611af8..617a9cb39 100644 --- a/doc/steps/BasicDoc.vue +++ b/doc/steps/BasicDoc.vue @@ -3,7 +3,20 @@

Steps requires a collection of menuitems as its model.

- + + +
@@ -15,27 +28,53 @@ export default { items: [ { label: 'Personal', - to: '/steps' + route: '/steps' }, { label: 'Seat', - to: '/steps/seat' + route: '/steps/seat' }, { label: 'Payment', - to: '/steps/payment' + route: '/steps/payment' }, { label: 'Confirmation', - to: '/steps/confirmation' + route: '/steps/confirmation' } ], code: { - basic: ``, + basic: ` + +`, options: ` @@ -47,19 +86,19 @@ export default { items: [ { label: 'Personal', - to: '/' + route: '/steps' }, { label: 'Seat', - to: '/seat' + route: '/steps/seat' }, { label: 'Payment', - to: '/payment' + route: '/steps/payment' }, { label: 'Confirmation', - to: '/confirmation' + route: '/steps/confirmation' } ] } @@ -69,7 +108,20 @@ export default { composition: ` @@ -80,19 +132,19 @@ import { ref } from "vue"; 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", } ]); <\/script>` diff --git a/doc/steps/InteractiveDoc.vue b/doc/steps/InteractiveDoc.vue index d439c215b..a377aa5b0 100644 --- a/doc/steps/InteractiveDoc.vue +++ b/doc/steps/InteractiveDoc.vue @@ -3,7 +3,16 @@

In order to add interactivity to the component, disable readonly to control the Steps.

- + + +
@@ -22,25 +31,34 @@ export default { items: [ { label: 'Personal', - to: '/steps' + route: '/steps' }, { label: 'Seat', - to: '/steps/seat' + route: '/steps/seat' }, { label: 'Payment', - to: '/steps/payment' + route: '/steps/payment' }, { label: 'Confirmation', - to: '/steps/confirmation' + route: '/steps/confirmation' } ], formObject: {}, code: { basic: `
- + + +
@@ -50,11 +68,19 @@ export default { `, options: `