Skip to content

Commit

Permalink
On each next step canContinue variable will be set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzo committed Oct 17, 2017
1 parent a6a5673 commit ced8c90
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ npm install vue-stepper --save

| Event name | When |
| :--------------- | :------- |
| `can-continue` | By default the *next button* will be disabled until the event `can-continue` is triggered with an object containing the property `value`. `Value` accepts a boolean, if `true` next/finish button will be enabled if false disabled.|
| `can-continue` | By default the *next button* will be disabled until the event `can-continue` is triggered with an object containing the property `value`. `Value` accepts a boolean, if `true` next/finish button will be enabled if false disabled. On each next step `canContinue` variable will be set to false.|

## Examples

Expand Down
6 changes: 5 additions & 1 deletion demo/StepTwo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@
</template>

<script>
export default {}
export default {
mounted() {
this.$emit('can-continue', {value: true})
}
}
</script>
2 changes: 1 addition & 1 deletion dist/build.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-stepper",
"version": "1.0.7",
"version": "1.0.8",
"description": "Vue Stepper",
"main": "src/index.js",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/HorizontalStepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
}
this.nextButton[this.currentStep.name] = true;
this.canContinue = false;
this.$forceUpdate();
},
backStep() {
Expand Down

0 comments on commit ced8c90

Please sign in to comment.