add weekStartDay logic to date-table
This commit is contained in:
parent
8930367486
commit
0916642089
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@
|
||||||
},
|
},
|
||||||
cells () {
|
cells () {
|
||||||
const date = new Date(this.year, this.month, 1);
|
const date = new Date(this.year, this.month, 1);
|
||||||
let day = getFirstDayOfMonth(date); // day of first day
|
const weekStartDay = Number(this.t('i.datepicker.weekStartDay'));
|
||||||
day = (day === 0 ? 7 : day);
|
const day = (getFirstDayOfMonth(date) || 7) - weekStartDay; // day of first day
|
||||||
const today = clearHours(new Date()); // timestamp of today
|
const today = clearHours(new Date()); // timestamp of today
|
||||||
const selectDay = clearHours(new Date(this.value)); // timestamp of selected day
|
const selectDay = clearHours(new Date(this.value)); // timestamp of selected day
|
||||||
const minDay = clearHours(new Date(this.minDate));
|
const minDay = clearHours(new Date(this.minDate));
|
||||||
|
|
Loading…
Add table
Reference in a new issue