Skip to content

Commit

Permalink
fix(DatePicker): 修复二月三月 时间问题 #635 (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuilanxin committed Mar 10, 2022
1 parent d5a2bd7 commit c9cb2b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-date-picker/src/DatePickerDay.tsx
Expand Up @@ -102,7 +102,7 @@ export function DayRect(props: DayRectProps) {
cls.next = true;
}
}
let cellDate = useMemo(() => new Date(new Date(date!).setDate(day)), [day]);
let cellDate = new Date(new Date(date!).setDate(day));
if (today && today.toDateString() === cellDate.toDateString()) {
cls.today = true;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-form/src/FormItem.tsx
@@ -1,4 +1,4 @@
import React, { CSSProperties } from 'react';
import React from 'react';
import { Col, Row } from '@uiw/react-grid';
import { IProps, HTMLInputProps } from '@uiw/utils';
import { FormFieldsProps } from './Form';
Expand All @@ -12,7 +12,7 @@ export interface FormItemProps<T> extends IProps, HTMLInputProps {
labelFor?: string;
labelClassName?: string;
help?: React.ReactNode;
labelStyle?: CSSProperties;
labelStyle?: React.CSSProperties;
initialValue?: string | number | T;
validator?: FormFieldsProps<T>['validator'];
}
Expand Down

0 comments on commit c9cb2b8

Please sign in to comment.