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

16 lines
380 B
Markdown
Raw Normal View History

2015-11-18 12:14:26 +08:00
# 特定选项
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'));
````