@geode/opengeodeweb-front 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Step.vue +15 -2
- package/package.json +1 -1
package/components/Step.vue
CHANGED
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
</v-col>
|
|
20
20
|
</v-row>
|
|
21
21
|
<Transition name="slide-fade">
|
|
22
|
-
<v-
|
|
22
|
+
<v-col v-if="step_index == current_step_index">
|
|
23
23
|
<component :is="steps[step_index].component.component_name"
|
|
24
24
|
v-bind="steps[step_index].component.component_options" />
|
|
25
|
-
|
|
25
|
+
<v-btn v-if="skippable()" @click="skipStep()" color="primary">Skip step</v-btn>
|
|
26
|
+
</v-col>
|
|
26
27
|
</Transition>
|
|
27
28
|
</v-card>
|
|
28
29
|
</template>
|
|
@@ -35,6 +36,18 @@ const { step_index } = props
|
|
|
35
36
|
const stepper_tree = inject('stepper_tree')
|
|
36
37
|
const { current_step_index, steps } = toRefs(stepper_tree)
|
|
37
38
|
|
|
39
|
+
function skippable () {
|
|
40
|
+
if (stepper_tree.steps[step_index].component.skippable !== undefined) {
|
|
41
|
+
return(stepper_tree.steps[step_index].component.skippable)
|
|
42
|
+
} else {
|
|
43
|
+
return(false)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function skipStep() {
|
|
48
|
+
stepper_tree.current_step_index++
|
|
49
|
+
}
|
|
50
|
+
|
|
38
51
|
function set_current_step (step_index) {
|
|
39
52
|
stepper_tree.current_step_index = step_index
|
|
40
53
|
}
|