Skip to content

Commit 7fbb538

Browse files
authored
Merge pull request #2 from eyaylagul/patch-1
added firstDayOfWeek props validator
2 parents bd9e1a8 + 446444e commit 7fbb538

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)