mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-21 20:20:33 +03:00
Update README.md
This commit is contained in:
@@ -51,17 +51,26 @@ props: {
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'Finish'
|
default: 'Finish'
|
||||||
},
|
},
|
||||||
|
/***
|
||||||
|
* Applies to text, border and circle
|
||||||
|
*/
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '#e74c3c' //circle, border and text color
|
default: '#e74c3c' //circle, border and text color
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* name of the transition when transition between steps
|
||||||
|
*/
|
||||||
transition: {
|
transition: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '' //name of the transition when transition between steps
|
default: '' //name of the transition when transition between steps
|
||||||
},
|
},
|
||||||
|
/***
|
||||||
|
* Index of the initial tab to display
|
||||||
|
*/
|
||||||
startIndex: {
|
startIndex: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0 //the index of the initial tab that you want to be active
|
default: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -73,12 +82,20 @@ props: {
|
|||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
/***
|
||||||
|
* Icon name for the upper circle corresponding to the tab
|
||||||
|
* Supports themify icons only for now.
|
||||||
|
*/
|
||||||
icon: {
|
icon: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '' //name of the icon. Supports themify icons only for now
|
default: ''
|
||||||
},
|
},
|
||||||
|
/***
|
||||||
|
* Function to execute before tab switch. Return value must be boolean
|
||||||
|
* If the return result is false, tab switch is restricted
|
||||||
|
*/
|
||||||
beforeChange: {
|
beforeChange: {
|
||||||
type: Function //function to execute before changing tabs. Has to return true or false. If returns false, tab change is restricted
|
type: Function
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user