Skip to content

Commit

Permalink
Revert "type: TimePicker added hourStep type" (#40956)
Browse files Browse the repository at this point in the history
* Revert "type: TimePicker added hourStep type (#40947)"

This reverts commit c89640d.

* deps: bump rc-picker@3.6.0

* Update package.json

Co-authored-by: Wuxh <wxh1220@gmail.com>

* Update components/time-picker/demo/interval-options.tsx

---------

Co-authored-by: MadCcc <1075746765@qq.com>
  • Loading branch information
Wxh16144 and MadCcc committed Apr 11, 2023
1 parent e36dfde commit 1fc3675
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions components/date-picker/generatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,15 @@ export function getTimeProps<DateType, DisabledTime>(
const DataPickerPlacements = ['bottomLeft', 'bottomRight', 'topLeft', 'topRight'] as const;
type DataPickerPlacement = typeof DataPickerPlacements[number];

const HourStep = [0.5, 1, 1.5, 2, 3, 4, 6, 8, 12] as const;
type THourStep = typeof HourStep[number];

type InjectDefaultProps<Props> = Omit<
Props,
'locale' | 'generateConfig' | 'hideHeader' | 'components' | 'hourStep'
'locale' | 'generateConfig' | 'hideHeader' | 'components'
> & {
locale?: PickerLocale;
size?: SizeType;
placement?: DataPickerPlacement;
bordered?: boolean;
status?: InputStatus;
hourStep?: THourStep;
};

export type PickerLocale = {
Expand Down
2 changes: 1 addition & 1 deletion components/time-picker/demo/interval-options.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TimePicker } from 'antd';
import React from 'react';
import { TimePicker } from 'antd';

const App: React.FC = () => <TimePicker minuteStep={15} secondStep={10} hourStep={1} />;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"rc-motion": "^2.6.1",
"rc-notification": "~5.0.0",
"rc-pagination": "~3.3.1",
"rc-picker": "~3.5.0",
"rc-picker": "~3.6.0",
"rc-progress": "~3.4.1",
"rc-rate": "~2.10.0",
"rc-resize-observer": "^1.2.0",
Expand Down

0 comments on commit 1fc3675

Please sign in to comment.