From 13d699619faf9cd1b403468245d6637b4e2dcee5 Mon Sep 17 00:00:00 2001 From: cromon Date: Tue, 15 May 2018 08:13:50 +0100 Subject: [PATCH] feat: add optional starting step to VTour --- src/components/VTour.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VTour.vue b/src/components/VTour.vue index 6e6146e..569d224 100644 --- a/src/components/VTour.vue +++ b/src/components/VTour.vue @@ -99,11 +99,11 @@ export default { } }, methods: { - start () { + start (initialStep) { // Wait for the DOM to be loaded, then start the tour setTimeout(() => { this.customCallbacks.onStart() - this.currentStep = 0 + this.currentStep = initialStep || 0 }, this.customOptions.startTimeout) }, previousStep () {