Merge pull request #3316 from SergioCrisostomo/fix-3277
compute calendar so we react on showWeekNumbers changes
This commit is contained in:
commit
92513e8b5f
1 changed files with 4 additions and 2 deletions
|
@ -36,10 +36,8 @@
|
|||
},
|
||||
},
|
||||
data () {
|
||||
const weekStartDay = Number(this.t('i.datepicker.weekStartDay'));
|
||||
return {
|
||||
prefixCls: prefixCls,
|
||||
calendar: new jsCalendar.Generator({onlyDays: !this.showWeekNumbers, weekStart: weekStartDay})
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -51,6 +49,10 @@
|
|||
}
|
||||
];
|
||||
},
|
||||
calendar(){
|
||||
const weekStartDay = Number(this.t('i.datepicker.weekStartDay'));
|
||||
return new jsCalendar.Generator({onlyDays: !this.showWeekNumbers, weekStart: weekStartDay});
|
||||
},
|
||||
headerDays () {
|
||||
const weekStartDay = Number(this.t('i.datepicker.weekStartDay'));
|
||||
const translatedDays = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'].map(item => {
|
||||
|
|
Loading…
Add table
Reference in a new issue