Skip to content

Commit ced8c90

Browse files
committed
On each next step canContinue variable will be set to false
1 parent a6a5673 commit ced8c90

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ npm install vue-stepper --save
5151

5252
| Event name | When |
5353
| :--------------- | :------- |
54-
| `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.|
54+
| `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.|
5555

5656
## Examples
5757

demo/StepTwo.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@
2727
</template>
2828

2929
<script>
30-
export default {}
30+
export default {
31+
mounted() {
32+
this.$emit('can-continue', {value: true})
33+
}
34+
}
3135
</script>

dist/build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/build.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-stepper",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Vue Stepper",
55
"main": "src/index.js",
66
"repository": {

src/HorizontalStepper.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
166166
}
167167
this.nextButton[this.currentStep.name] = true;
168+
this.canContinue = false;
168169
this.$forceUpdate();
169170
},
170171
backStep() {

0 commit comments

Comments
 (0)