From 85e483921bf753051894530c9fba6f5501ab74c8 Mon Sep 17 00:00:00 2001 From: susiwen Date: Thu, 27 Jun 2019 15:46:00 +0800 Subject: [PATCH] Add missing info in documents --- components/date-picker/index.en-US.md | 1 + components/date-picker/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index a4b9922b50..409bf40a53 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -88,6 +88,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke | value | to set date | [moment](http://momentjs.com/) | - | | onChange | a callback function, can be executed when the selected time is changing | function(date: moment, dateString: string) | - | | onOk | callback when click ok button | function() | - | +| onPanelChange | Callback function for panel changing | function(value, mode) | - | ### MonthPicker diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index 41f8361903..87c1fe1b4f 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -58,6 +58,7 @@ moment.locale('zh-cn'); | dropdownClassName | 额外的弹出日历 className | string | - | | getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 | | locale | 国际化配置 | object | [默认配置](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json) | +| mode | 日期面板的状态 | `time|date|month|year|decade` | 'date' | | open | 控制弹层是否展开 | boolean | - | | placeholder | 输入框提示文字 | string\|RangePicker\[] | - | | popupStyle | 额外的弹出日历样式 | object | {} | @@ -82,7 +83,6 @@ moment.locale('zh-cn'); | defaultPickerValue | 默认面板日期 | [moment](http://momentjs.com/) | 无 | | disabledTime | 不可选择的时间 | function(date) | 无 | | format | 设置日期格式,为数组时支持多格式匹配,展示以第一个为准。配置参考 [moment.js](http://momentjs.com/) | string \| string[] | "YYYY-MM-DD" | -| mode | 日期面板的状态 | `time|date|month|year|decade` | 'date' | | renderExtraFooter | 在面板中添加额外的页脚 | (mode) => React.ReactNode | - | | showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/components/time-picker/#API) | | showTime.defaultValue | 设置用户选择日期时默认的时分秒,[例子](#components-date-picker-demo-disabled-date) | [moment](http://momentjs.com/) | moment() |