mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
17 lines
246 B
Markdown
17 lines
246 B
Markdown
---
|
|
order: 9
|
|
title: 月选择器
|
|
---
|
|
|
|
使用 `MonthPicker` 实现月选择器.
|
|
|
|
|
|
|
|
````jsx
|
|
import { DatePicker } from 'antd';
|
|
const MonthPicker = DatePicker.MonthPicker;
|
|
ReactDOM.render(
|
|
<MonthPicker defaultValue="2015-12" />
|
|
, mountNode);
|
|
````
|