mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
12 lines
312 B
TypeScript
12 lines
312 B
TypeScript
|
import React from 'react';
|
||
|
import type { TimePickerProps } from 'antd';
|
||
|
import { TimePicker } from 'antd';
|
||
|
|
||
|
const onChange: TimePickerProps['onChange'] = (time, timeString) => {
|
||
|
console.log(time, timeString);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => <TimePicker onChange={onChange} needConfirm />;
|
||
|
|
||
|
export default App;
|