mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-06 19:18:03 +08:00
16 lines
380 B
Markdown
16 lines
380 B
Markdown
# 特定选项
|
|
|
|
- order: 3
|
|
|
|
分钟只提供特定的选择,同时可以通过 `hourOptions` 和 `secondOptions` 对小时和秒进行特殊的限定。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Timepicker } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Timepicker defaultValue="12:30:23" format="HH:mm" minuteOptions={[0, 30]} />
|
|
, document.getElementById('components-timepicker-demo-special-minutes'));
|
|
````
|