mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
DatePicker: fix disabled dates for the west hemisphere
This commit is contained in:
parent
9f9629d2bb
commit
dba797416e
@ -67,7 +67,7 @@
|
||||
var year = this.date.getFullYear();
|
||||
var date = new Date(0);
|
||||
date.setFullYear(year);
|
||||
date.setMonth(month);
|
||||
date.setMonth(month, 1);
|
||||
date.setHours(0);
|
||||
var nextMonth = new Date(date);
|
||||
nextMonth.setMonth(month + 1);
|
||||
|
@ -63,9 +63,7 @@
|
||||
getCellStyle(year) {
|
||||
const style = {};
|
||||
|
||||
var date = new Date(0);
|
||||
date.setFullYear(year);
|
||||
date.setHours(0);
|
||||
var date = new Date(year, 0, 1, 0);
|
||||
var nextYear = new Date(date);
|
||||
nextYear.setFullYear(year + 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user