2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-06 17:02:24 +03:00

Add vue-router to dev deps

Revert router integration due to wrong merge
This commit is contained in:
cristi
2017-04-24 22:57:57 +03:00
parent 4f29fb639d
commit 4a9655edd3
5 changed files with 34 additions and 4 deletions
+6 -3
View File
@@ -7,19 +7,22 @@
class="card">
<tab-content title="Personal details"
:before-change="validateAsync"
route="/first"
icon="ti-user">
My first tab content
</tab-content>
<tab-content title="Additional Info"
:before-change="validate"
route="/second"
icon="ti-settings">
My second tab content
</tab-content>
<tab-content title="Last step"
:before-change="validateAsync"
route="/third"
icon="ti-check">
Yuhuuu! This seems pretty damn simple
</tab-content>
<transition name="fade" mode="out-in">
<router-view></router-view>
</transition>
<div class="loader" v-if="loadingWizard"></div>
</form-wizard>
</div>
+15
View File
@@ -1,14 +1,29 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import FormWizard from '../src/index'
const First = { template: '<div>First page</div>' }
const Second = { template: '<div>Second page</div>' }
const Third = { template: '<div>Third page</div>' }
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/first', component: First },
{ path: '/second', component: Second },
{ path: '/third', component: Third }
]
})
Vue.use(VueRouter)
Vue.use(FormWizard)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
router,
el: '#app',
template: '<App/>',
components: {App}