diff --git a/components/date-picker/PickerButton.tsx b/components/date-picker/PickerButton.tsx deleted file mode 100644 index 97af6420ef..0000000000 --- a/components/date-picker/PickerButton.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import * as React from 'react'; - -import Button from '../button'; -import type { ButtonProps } from '../button'; - -export default function PickerButton(props: ButtonProps) { - return + + + + + + + , +] +`; + exports[`TimePicker should support bordered 1`] = `
{ ); expect(container.firstChild).toMatchSnapshot(); }); + + it('should modify the ok button', () => { + const { container } = render( + , + ); + expect(Array.from(container.children)).toMatchSnapshot(); + }); }); diff --git a/components/time-picker/index.en-US.md b/components/time-picker/index.en-US.md index b799c9d67a..8f3ce4a195 100644 --- a/components/time-picker/index.en-US.md +++ b/components/time-picker/index.en-US.md @@ -82,6 +82,7 @@ dayjs.extend(customParseFormat) | onCalendarChange | Callback function, can be executed when the start time or the end time of the range is changing. `info` argument is added in 4.4.0 | function(dates: \[dayjs, dayjs], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | | | onChange | A callback function, can be executed when the selected time is changing | function(time: dayjs, timeString: string): void | - | | | onOpenChange | A callback function which will be called while panel opening/closing | (open: boolean) => void | - | | +| okButtonProps | The ok button props | [ButtonProps](/components/button/#api) | - | | #### DisabledTime