0👍
If you already have:
import VueGoodWizard from './wizardrego'
Vue.use(VueGoodWizard);
You don’t need to re-defined vue-good-wizard
component.
<script>
/* eslint-disable no-new */
var rego = new Vue({
el: '#app',
data() {
return {
steps: [
{
label: 'Select Items',
slot: 'page1',
},
{
label: 'Add Constraints',
slot: 'page2',
},
{
label: 'Review',
slot: 'page3',
},
{
label: 'Apply',
slot: 'page4',
}
],
}
},
methods: {
nextClicked(currentPage) {
console.log('next clicked', currentPage)
return true //return false if you want to prevent moving to next page
},
backClicked(currentPage) {
console.log('back clicked', currentPage)
return true //return false if you want to prevent moving to previous page
}
}
})
</script>
- [Vuejs]-How can I import a Vue component from an NPM package in a Codepen?
- [Vuejs]-Sending a file to client gives file not found exception when file is there
Source:stackexchange.com