mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
parent
e5280b9d2c
commit
b0dabb4fd9
@ -100,8 +100,8 @@ export class CustomDaysView extends DaysView {
|
||||
confirm = () => {
|
||||
let date = (this.props.selectedDate || this.props.viewDate).clone();
|
||||
|
||||
// 如果 minDate 是可用的,且比当前日期早,则用 minDate
|
||||
if (this.props.minDate?.isValid() && this.props.minDate?.isBefore(date)) {
|
||||
// 如果 minDate 是可用的,且比当前日期晚,则用 minDate
|
||||
if (this.props.minDate?.isValid() && this.props.minDate?.isAfter(date)) {
|
||||
date = this.props.minDate.clone();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user