Skip to content

Commit

Permalink
fix date-picker doc type
Browse files Browse the repository at this point in the history
  • Loading branch information
iugo authored Dec 18, 2018
1 parent 2c7112b commit a98e427
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/date-picker/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ moment.locale('zh-cn');
| --- | --- | --- | --- |
| defaultValue | 默认日期 | [moment](http://momentjs.com/)\[] ||
| defaultPickerValue | 默认面板日期 | [moment](http://momentjs.com/)\[] ||
| disabledTime | 不可选择的时间 | function(dates: [moment, moment], partial: `'start'|'end'`) ||
| disabledTime | 不可选择的时间 | function(dates: \[moment, moment\], partial: `'start'|'end'`) ||
| format | 展示的日期格式 | string | "YYYY-MM-DD HH:mm:ss" |
| ranges       | 预设时间范围快捷选择 | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } ||
| renderExtraFooter | 在面板中添加额外的页脚 | () => React.ReactNode | - |
| showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/components/time-picker/#API) |
| showTime.defaultValue | 设置用户选择日期时默认的时分秒,[例子](#components-date-picker-demo-disabled-date) | [moment](http://momentjs.com/)\[] | [moment(), moment()] |
| value | 日期 | [moment](http://momentjs.com/)\[] ||
| onCalendarChange | 待选日期发生变化的回调 | function(dates: [moment, moment], dateStrings: [string, string]) ||
| onChange | 日期范围发生变化的回调 | function(dates: [moment, moment], dateStrings: [string, string]) ||
| onOk | 点击确定按钮的回调 | function() | - |
| onCalendarChange | 待选日期发生变化的回调 | function(dates: \[moment, moment\], dateStrings: \[string, string\]) ||
| onChange | 日期范围发生变化的回调 | function(dates: \[moment, moment\], dateStrings: \[string, string\]) ||
| onOk | 点击确定按钮的回调 | function(dates: [moment](http://momentjs.com/)\[]) | - |

<style>
.code-box-demo .ant-calendar-picker {
Expand Down

0 comments on commit a98e427

Please sign in to comment.