Line data Source code
1 : <template>
2 : <CoachmarkLanding
3 2359 : v-if="tour.step?.kind === 'landing'"
4 : :title="tour.title"
5 : :message="tour.body"
6 : :image="tour.step.image"
7 : :primary-label="tour.primaryLabel"
8 : :skip-label="tour.skipLabel"
9 : :waiting-for-target="tour.waitingForTarget"
10 : @start="tour.next"
11 : @skip="tour.skip"
12 : />
13 : <TourSpotlight
14 : v-else-if="tour.step?.kind === 'spotlight'"
15 : :step="tour.step"
16 : :title="tour.title"
17 : :body="tour.body"
18 : :is-last="tour.isLast"
19 : :can-go-back="tour.canGoBack"
20 : :primary-label="tour.primaryLabel"
21 : :skip-label="tour.skipLabel"
22 : :back-label="tour.backLabel"
23 : :counted-step-idx="tour.countedStepIdx"
24 : :counted-steps-total="tour.countedStepsTotal"
25 : :waiting-for-target="tour.waitingForTarget"
26 : :step-settled="tour.stepSettled"
27 : @advance="tour.next"
28 : @back="tour.back"
29 : @skip="tour.skip"
30 : />
31 : </template>
32 :
33 : <script setup lang="ts">
34 : import CoachmarkLanding from './CoachmarkLanding.vue'
35 : import TourSpotlight from './TourSpotlight.vue'
36 : import { useOnboardingTourStore } from './onboardingTourStore'
37 :
38 2335 : const tour = useOnboardingTourStore()
39 : </script>
|