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

Update README.md with vue-router example

This commit is contained in:
Cristi Jora
2017-04-20 11:07:32 +03:00
committed by GitHub
parent e3cda5a502
commit a4075175ca
+7
View File
@@ -19,6 +19,7 @@ Other demos:
* [Customized buttons with slots](https://jsfiddle.net/bt5dhqtf/103/) Replace stuff you don't like
* [Call a function before tab switch](https://jsfiddle.net/bt5dhqtf/105/)
* [Complete form example](https://jsfiddle.net/bt5dhqtf/150/) integrated with [vue-form-generator](https://github.com/icebob/vue-form-generator)
* [Vue router integration](https://jsfiddle.net/CristiJ/bt5dhqtf/252/) You can place a `router-view` inside the wizard and have a separate page per tab. A `route` prop must be passed to the tabs you want to handle certain tabs
# Usage
@@ -139,6 +140,12 @@ props: {
*/
beforeChange: {
type: Function
},
/***
* Used to handle routing with vue-router. Refer to [router.push](https://router.vuejs.org/en/essentials/navigation.html) for a valid prop in this case
*/
route: {
type: [String, Object]
}
}
```