mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 11:08:30 +08:00
23 lines
351 B
Markdown
23 lines
351 B
Markdown
---
|
|
order: 9
|
|
title:
|
|
zh-CN: 月选择器
|
|
en-US: MonthPicker
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
使用 `MonthPicker` 实现月选择器。
|
|
|
|
## en-US
|
|
|
|
You can get a month selector by using `MonthPicker`.
|
|
|
|
````jsx
|
|
import { DatePicker } from 'antd';
|
|
const MonthPicker = DatePicker.MonthPicker;
|
|
ReactDOM.render(
|
|
<MonthPicker defaultValue="2015-12" />
|
|
, mountNode);
|
|
````
|