2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-14 16:42:23 +03:00

fixed footer slot code example so copying code will allow Previous Tab to work.

This commit is contained in:
Lane Anderson
2018-04-17 14:05:14 -05:00
parent a62e158ec0
commit be626fdd3f
4 changed files with 102 additions and 21 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ One potential usage can be that you want to have a different button when complet
```html
<template slot="footer" slot-scope="props">
<div class="wizard-footer-left">
<wizard-button v-if="props.activeTabIndex > 0 && !props.isLastStep" :style="props.fillButtonStyle">Previous</wizard-button>
<wizard-button v-if="props.activeTabIndex > 0 && !props.isLastStep" @click.native="props.prevTab()" :style="props.fillButtonStyle">Previous</wizard-button>
</div>
<div class="wizard-footer-right">
<wizard-button v-if="!props.isLastStep"@click.native="props.nextTab()" class="wizard-footer-right" :style="props.fillButtonStyle">Next</wizard-button>