diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md index 0f68b576f7..aeeddb77d9 100644 --- a/components/calendar/index.en-US.md +++ b/components/calendar/index.en-US.md @@ -35,7 +35,7 @@ When data is in the form of dates, such as schedules, timetables, prices calenda | dateCellRender | Customize the display of the date cell, the returned content will be appended to the cell | function(date: moment): ReactNode | - | | | dateFullCellRender | Customize the display of the date cell, the returned content will override the cell | function(date: moment): ReactNode | - | | | defaultValue | The date selected by default | [moment](http://momentjs.com/) | - | | -| disabledDate | Function that specifies the dates that cannot be selected | (currentDate: moment) => boolean | - | | +| disabledDate | Function that specifies the dates that cannot be selected, `currentDate` is same moment object as `value` prop which you shouldn't mutate it](https://github.com/ant-design/ant-design/issues/30987) | (currentDate: moment) => boolean | - | | | fullscreen | Whether to display in full-screen | boolean | true | | | headerRender | Render custom header in panel | function(object:{value: moment, type: string, onChange: f(), onTypeChange: f()}) | - | | | locale | The calendar's locale | object | [(default)](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json) | | diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md index 69abee334f..82dcd4d347 100644 --- a/components/calendar/index.zh-CN.md +++ b/components/calendar/index.zh-CN.md @@ -36,7 +36,7 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg | dateCellRender | 自定义渲染日期单元格,返回内容会被追加到单元格 | function(date: moment): ReactNode | - | | | dateFullCellRender | 自定义渲染日期单元格,返回内容覆盖单元格 | function(date: moment): ReactNode | - | | | defaultValue | 默认展示的日期 | [moment](http://momentjs.com/) | - | | -| disabledDate | 不可选择的日期 | (currentDate: moment) => boolean | - | | +| disabledDate | 不可选择的日期,参数为当前 `value`,注意使用时[不要直接修改](https://github.com/ant-design/ant-design/issues/30987) | (currentDate: moment) => boolean | - | | | fullscreen | 是否全屏显示 | boolean | true | | | headerRender | 自定义头部内容 | function(object:{value: moment, type: string, onChange: f(), onTypeChange: f()}) | - | | | locale | 国际化配置 | object | [(默认配置)](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json) | |