mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-23 14:50:33 +03:00
Add method to activate all steps
Add unit tests for router exampples Closes #113
This commit is contained in:
@@ -264,6 +264,12 @@
|
||||
})
|
||||
this.navigateToTab(0)
|
||||
},
|
||||
activateAll () {
|
||||
this.maxStep = this.tabs.length - 1
|
||||
this.tabs.forEach((tab) => {
|
||||
tab.checked = true
|
||||
})
|
||||
},
|
||||
navigateToTab (index) {
|
||||
let validate = index > this.activeTabIndex
|
||||
if (index <= this.maxStep) {
|
||||
|
||||
Reference in New Issue
Block a user