2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-23 22:40:33 +03:00

Add startIndex prop validation

This commit is contained in:
cristijora
2017-05-04 21:53:22 +03:00
parent 3a535eeade
commit 1aed1da7ab
2 changed files with 5 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -130,7 +130,10 @@
*/ */
startIndex: { startIndex: {
type: Number, type: Number,
default: 0 default: 0,
validator: (value) => {
return value >= 0
}
} }
}, },
data () { data () {