Browse Source

doc: Add mode and onPanelChange in API document, close #9785

pull/10280/merge
afc163 7 years ago
parent
commit
7f8f89cbff
  1. 2
      components/date-picker/index.en-US.md
  2. 2
      components/date-picker/index.zh-CN.md

2
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

2
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

Loading…
Cancel
Save