Skip to content

Commit

Permalink
fix(date-picker, time-picker,past-time-picker): fix input params (#1488)
Browse files Browse the repository at this point in the history
Co-authored-by: ZhaoChen <ittisennsinn@gmail.com>
  • Loading branch information
itiiss and itiisennsinn committed Nov 19, 2021
1 parent f4666bc commit 2953c69
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/date-picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const DatePicker: React.FC<DatePickerProps> = (props: DatePickerProps) =>
prefix,
suffix,
size,
className,
style,
...restProps
} = props;

Expand Down Expand Up @@ -63,6 +65,8 @@ export const DatePicker: React.FC<DatePickerProps> = (props: DatePickerProps) =>
value={controlledValue && formatDate(controlledValue)}
size={size}
suffix={suffix}
className={className}
style={style}
/>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/date-range-picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const DateRangePicker: React.FC<DateRangePickerProps> = (props: DateRange
prefix,
suffix,
size,
className,
style,
...restProps
} = props;

Expand Down Expand Up @@ -79,6 +81,8 @@ export const DateRangePicker: React.FC<DateRangePickerProps> = (props: DateRange
value={validValue(controlledValue) ? formatDates(controlledValue) : undefined}
size={size}
suffix={suffix}
className={className}
style={style}
/>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/past-time-picker/PastTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const PastTimePicker = (props: PastTimePickerProps) => {
prefix,
suffix,
size,
className,
style,
...restProps
} = props;

Expand Down Expand Up @@ -153,6 +155,8 @@ const PastTimePicker = (props: PastTimePickerProps) => {
value={timeRange && humanizeTimeRange(timeRange)}
size={size}
suffix={suffix}
className={className}
style={style}
/>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/time-picker/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export const TimePicker: React.FC<TimePickerProps> = (props: TimePickerProps) =>
suffix,
locale: customizeLocale,
onVisibleChange,
className,
style,
...restProps
} = props;
const [visible, setVisible] = useControlledState(popoverVisible, false);
Expand Down Expand Up @@ -93,6 +95,8 @@ export const TimePicker: React.FC<TimePickerProps> = (props: TimePickerProps) =>
placeholder={placeholder ?? timeSelect}
size={size}
suffix={suffix}
className={className}
style={style}
/>
);
}
Expand Down

1 comment on commit 2953c69

@vercel
Copy link

@vercel vercel bot commented on 2953c69 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.