2017-10-28 15:00:56 +08:00
|
|
|
---
|
|
|
|
order: 5
|
|
|
|
title:
|
|
|
|
zh-CN: 步长选项
|
|
|
|
en-US: interval option
|
|
|
|
---
|
2019-05-07 14:57:32 +08:00
|
|
|
|
2017-10-28 15:00:56 +08:00
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
可以使用 `hourStep` `minuteStep` `secondStep` 按步长展示可选的时分秒。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Show stepped options by `hourStep` `minuteStep` `secondStep`.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-10-28 15:00:56 +08:00
|
|
|
import { TimePicker } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2017-10-28 15:00:56 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => <TimePicker minuteStep={15} secondStep={10} />;
|
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|