mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-08 05:42:25 +03:00
#27 Emit on-complete on nextTab method upon last step
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
|
||||
<template>
|
||||
<span @click="finish" class="wizard-footer-right" v-if="isLastStep">
|
||||
<slot name="finish">
|
||||
<slot name="nextTab">
|
||||
<wizard-button :style="fillButtonStyle">
|
||||
{{finishButtonText}}
|
||||
</wizard-button>
|
||||
@@ -242,7 +242,7 @@
|
||||
this.changeTab(this.activeTabIndex, this.activeTabIndex + 1)
|
||||
} else {
|
||||
this.isLastStep = true
|
||||
this.$emit('finished')
|
||||
this.$emit('on-complete')
|
||||
}
|
||||
}
|
||||
this.beforeTabChange(this.activeTabIndex, cb)
|
||||
@@ -262,12 +262,6 @@
|
||||
cb()
|
||||
}
|
||||
},
|
||||
finish () {
|
||||
let cb = () => {
|
||||
this.$emit('on-complete')
|
||||
}
|
||||
this.beforeTabChange(this.activeTabIndex, cb)
|
||||
},
|
||||
setLoading (value) {
|
||||
this.loading = value
|
||||
this.$emit('on-loading', value)
|
||||
|
||||
Reference in New Issue
Block a user