ant-design/components/timepicker/demo/special-minutes.md

17 lines
383 B
Markdown
Raw Normal View History

2015-11-16 23:11:41 +08:00
特定选项
====
- order: 3
分钟只提供特定的选择,同时可以通过 `hourOptions``secondOptions` 对小时和秒进行特殊的限定。
---
````jsx
import { Timepicker } from 'antd';
2015-11-16 23:11:41 +08:00
ReactDOM.render(
<Timepicker defaultValue="12:30:23" format="HH:mm" minuteOptions={[0, 30]} />
2015-11-16 23:11:41 +08:00
, document.getElementById('components-timepicker-demo-special-minutes'));
````