mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-06 05:58:46 +08:00
24 lines
414 B
Markdown
24 lines
414 B
Markdown
---
|
|
order: 5
|
|
title:
|
|
zh-CN: 步长选项
|
|
en-US: interval option
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
可以使用 `hourStep` `minuteStep` `secondStep` 按步长展示可选的时分秒。
|
|
|
|
## en-US
|
|
|
|
Show stepped options by `hourStep` `minuteStep` `secondStep`.
|
|
|
|
```tsx
|
|
import { TimePicker } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => <TimePicker minuteStep={15} secondStep={10} />;
|
|
|
|
export default App;
|
|
```
|