release/2.19.1.2501.01
This commit is contained in:
parent
5e5e109b7e
commit
680c4a0506
|
|
@ -445,7 +445,9 @@ export const MonthRangePicker = (props) => {
|
|||
<WeaDatePicker
|
||||
value={startDate} disabled={disabled}
|
||||
disabledDate={(current) => {
|
||||
return current && endDate && current.getTime() > new Date(endDate).getTime();
|
||||
// 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));
|
||||
}}
|
||||
format="YYYY-MM"
|
||||
onChange={(val) => onChange([val, endDate])}
|
||||
|
|
@ -507,4 +509,4 @@ export const getSalaryMonthValue = (dateType) => {
|
|||
break;
|
||||
}
|
||||
return [start, end];
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue