Compare commits
3 Commits
b522e8c17d
...
421ea79038
| Author | SHA1 | Date |
|---|---|---|
|
|
421ea79038 | |
|
|
f202c8d4cb | |
|
|
65659c5990 |
|
|
@ -450,7 +450,7 @@ export const MonthRangePicker = (props) => {
|
|||
disabledDate={(current) => {
|
||||
// 20251212前版本(问题时不能选到当月)
|
||||
// return current && endDate && current.getTime() > new Date(endDate).getTime();
|
||||
return current && endDate && moment(`${new Date(current.getTime()).getFullYear()}-${new Date(current.getTime()).getMonth() + 1}`).isAfter(moment(endDate));
|
||||
return current && endDate && moment(`${new Date(current.getTime()).getFullYear()}-${String(new Date(current.getTime()).getMonth() + 1).padStart(2, '0')}`).isAfter(moment(endDate));
|
||||
}}
|
||||
format="YYYY-MM"
|
||||
onChange={(val) => onChange([val, endDate])}
|
||||
|
|
|
|||
Loading…
Reference in New Issue