diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index e7ad7f7033..64f17e2803 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -156,7 +156,7 @@ Added in `4.1.0`. | defaultValue | To set default date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - | | | defaultPickerValue | To set default picker date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)\] | - | | | disabled | If disable start or end | \[boolean, boolean] | - | | -| disabledTime | To specify the time that cannot be selected | function(dates: \[moment, moment], partial: `start` \| `end`) | - | | +| disabledTime | To specify the time that cannot be selected | function(date: moment, partial: `start` \| `end`) | - | | | format | To set the date format, refer to [moment.js](http://momentjs.com/). When an array is provided, all values are used for parsing and first value is used for formatting | string \| string[] | `YYYY-MM-DD HH:mm:ss` | | | ranges | The preseted ranges for quick selection | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } | - | | | renderExtraFooter | Render extra footer in panel | () => React.ReactNode | - | | diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index 24c4f42022..aad5d41c72 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -157,7 +157,7 @@ import locale from 'antd/es/locale/zh_CN'; | defaultValue | 默认日期 | [moment](http://momentjs.com/)\[] | - | | | defaultPickerValue | 默认面板日期 | [moment](http://momentjs.com/)\[] | - | | | disabled | 禁用起始项 | \[boolean, boolean] | - | | -| disabledTime | 不可选择的时间 | function(dates: \[moment, moment\], partial: `start` \| `end`) | - | | +| disabledTime | 不可选择的时间 | function(date: 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 | - | |