From 7f8f89cbff74c6fa00fdb37ba2661d7c51f63eff Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 27 Apr 2018 20:17:24 +0800 Subject: [PATCH] doc: Add mode and onPanelChange in API document, close #9785 --- components/date-picker/index.en-US.md | 2 ++ components/date-picker/index.zh-CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index 0de8a0e08c..9eba31851e 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -51,6 +51,8 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke | size | determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | string | - | | style | to customize the style of the input box | object | {} | | onOpenChange | a callback function, can be executed whether the popup calendar is popped up or closed | function(status) | - | +| mode | picker panel mode | `time|date|month|year` | 'date' | +| onPanelChange | callback when picker panel mode is changed | function(value, mode) | - | ### Common Methods diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index 51d2d550f5..d12da799bd 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -74,6 +74,8 @@ subtitle: 日期选择框 | value | 日期 | [moment](http://momentjs.com/) | 无 | | onChange | 时间发生变化的回调 | function(date: moment, dateString: string) | 无 | | onOk | 点击确定按钮的回调 | function() | - | +| mode | 日期面板的状态 | `time|date|month|year` | 'date' | +| onPanelChange | 日期面板变化时的回调 | function(value, mode) | - | ### MonthPicker