Luyiin
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
components/date-picker/demo/select-in-range.tsx
|
|
@ -14,8 +14,8 @@ const App: React.FC = () => { |
|
|
|
if (!dates) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
const tooLate = dates[0] && current.diff(dates[0], 'days') > 7; |
|
|
|
const tooEarly = dates[1] && dates[1].diff(current, 'days') > 7; |
|
|
|
const tooLate = dates[0] && current.diff(dates[0], 'days') >= 7; |
|
|
|
const tooEarly = dates[1] && dates[1].diff(current, 'days') >= 7; |
|
|
|
return !!tooEarly || !!tooLate; |
|
|
|
}; |
|
|
|
|
|
|
|