Skip to content

Commit 446444e

Browse files
authored
added firstDayOfWeek props validator
1 parent 7012ea4 commit 446444e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/calendar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export default {
124124
},
125125
firstDayOfWeek: {
126126
type: String,
127-
default: 'monday' // monday or sunday
127+
validator: val => ['monday', 'sunday'].contains(val),
128+
default: 'monday'
128129
},
129130
disabledStartDate: {
130131
type: Object,

0 commit comments

Comments
 (0)