From 208ecf5081dc0f457c6856fc3aa218e23ce7358f Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 13 Apr 2016 09:25:29 +0800 Subject: [PATCH] docs: update docs for MonthPicker --- components/date-picker/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/date-picker/index.md b/components/date-picker/index.md index 9d9ad02a3f..ecbb9cb3ee 100644 --- a/components/date-picker/index.md +++ b/components/date-picker/index.md @@ -39,6 +39,21 @@ | onOk | 点击确定按钮的回调 | function(Date value) | 无 | | getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 | +### MonthPicker + +| 参数 | 说明 | 类型 | 默认值 | +|--------------|----------------|----------|--------------| +| value | 日期 | string or Date | 无 | +| defaultValue | 默认日期 | string or Date | 无 | +| format | 展示的日期格式,配置参考 [GregorianCalendarFormat](https://github.com/yiminghe/gregorian-calendar-format) | string | "yyyy-MM" | +| onChange | 时间发生变化的回调,发生在用户选择时间时 | function(Date value) | 无 | +| disabled | 禁用 | bool | false | +| style | 自定义输入框样式 | object | {} | +| popupStyle | 格外的弹出日历样式 | object | {} | +| size | 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px | string | 无 | +| locale | 国际化配置 | object | [默认配置](https://github.com/ant-design/ant-design/issues/424) | +| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 | + ### RangePicker | 参数 | 说明 | 类型 | 默认值 |