From 343daf187f8f2a0076ed4f7938323bc547845ea2 Mon Sep 17 00:00:00 2001 From: cristijora Date: Tue, 5 Sep 2017 22:09:07 +0300 Subject: [PATCH] Add name for WizardStep --- dev-example/WizardRoute.vue | 30 ++++++++++++------------------ src/components/WizardStep.vue | 1 + 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/dev-example/WizardRoute.vue b/dev-example/WizardRoute.vue index 39a598e..89bb851 100644 --- a/dev-example/WizardRoute.vue +++ b/dev-example/WizardRoute.vue @@ -5,24 +5,14 @@ Go to a different route - - - - - - - - - - + {{tab}} + + + @@ -36,7 +26,8 @@ loadingWizard: false, error: null, count: 0, - tabs: ['test', 'test2', 'test3'] + tabs: ['test', 'test2', 'test3'], + activeIndex: 0 } }, methods: { @@ -46,6 +37,9 @@ setLoading (value) { this.loadingWizard = value }, + handleChange(prevIndex, nextIndex){ + console.log(`Changing from ${prevIndex} to ${nextIndex}`) + }, setError (error) { this.error = error }, diff --git a/src/components/WizardStep.vue b/src/components/WizardStep.vue index 6a529dc..a305948 100644 --- a/src/components/WizardStep.vue +++ b/src/components/WizardStep.vue @@ -34,6 +34,7 @@