mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-24 01:00:32 +03:00
Update README.md with vue-router example
This commit is contained in:
@@ -19,6 +19,7 @@ Other demos:
|
|||||||
* [Customized buttons with slots](https://jsfiddle.net/bt5dhqtf/103/) Replace stuff you don't like
|
* [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/)
|
* [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)
|
* [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
|
# Usage
|
||||||
|
|
||||||
@@ -139,6 +140,12 @@ props: {
|
|||||||
*/
|
*/
|
||||||
beforeChange: {
|
beforeChange: {
|
||||||
type: Function
|
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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user