mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
demo(date-picker-demo): fix select-in-range demo (#41161)
This commit is contained in:
parent
b915094498
commit
d5ef496bb6
@ -14,8 +14,8 @@ const App: React.FC = () => {
|
|||||||
if (!dates) {
|
if (!dates) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const tooLate = dates[0] && current.diff(dates[0], 'days') > 7;
|
const tooLate = dates[0] && current.diff(dates[0], 'days') >= 7;
|
||||||
const tooEarly = dates[1] && dates[1].diff(current, 'days') > 7;
|
const tooEarly = dates[1] && dates[1].diff(current, 'days') >= 7;
|
||||||
return !!tooEarly || !!tooLate;
|
return !!tooEarly || !!tooLate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user