mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import React from 'react';
|
|
import { TimePicker } from 'antd';
|
|
import dayjs from 'dayjs';
|
|
|
|
const format = 'HH:mm:ss';
|
|
|
|
const App: React.FC = () => {
|
|
const startTime = dayjs('12:08:23', 'HH:mm:ss');
|
|
const endTime = dayjs('12:08:23', 'HH:mm:ss');
|
|
|
|
return <TimePicker.RangePicker defaultValue={[startTime, endTime]} format={format} />;
|
|
};
|
|
|
|
export default App;
|