mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
16 lines
295 B
Markdown
16 lines
295 B
Markdown
|
# 月选择器
|
||
|
|
||
|
- order: 9
|
||
|
|
||
|
使用 MonthPicker 实现月选择器.
|
||
|
|
||
|
---
|
||
|
|
||
|
````jsx
|
||
|
import { DatePicker } from 'antd';
|
||
|
const MonthPicker = DatePicker.MonthPicker;
|
||
|
ReactDOM.render(
|
||
|
<MonthPicker defaultValue="2015-12" />
|
||
|
, document.getElementById('components-date-picker-demo-month-picker'));
|
||
|
````
|