diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md index 8c5483d39e..dddcdab367 100644 --- a/components/calendar/index.en-US.md +++ b/components/calendar/index.en-US.md @@ -40,7 +40,7 @@ When data is in the form of dates, such as schedules, timetables, prices calenda | mode | The display mode of the calendar | `month` \| `year` | `month` | | monthCellRender | Customize the display of the month cell, the returned content will be appended to the cell | function(date: moment): ReactNode | - | | monthFullCellRender | Customize the display of the month cell, the returned content will override the cell | function(date: moment): ReactNode | - | +| validRange | to set valid range | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - | | value | The current selected date | [moment](http://momentjs.com/) | current date | | onPanelChange | Callback for when panel changes | function(date: moment, mode: string) | - | | onSelect | Callback for when a date is selected | function(date: moment) | - | -| validRange | to set valid range | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - | diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md index 71e7ff66cd..0ae9309c59 100644 --- a/components/calendar/index.zh-CN.md +++ b/components/calendar/index.zh-CN.md @@ -41,6 +41,7 @@ title: Calendar | mode | 初始模式,`month/year` | string | month | | monthCellRender | 自定义渲染月单元格,返回内容会被追加到单元格 | function(date: moment): ReactNode | 无 | | monthFullCellRender | 自定义渲染月单元格,返回内容覆盖单元格 | function(date: moment): ReactNode | 无 | +| validRange | 设置可以显示的日期 | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | 无 | | value | 展示日期 | [moment](http://momentjs.com/) | 当前日期 | | onPanelChange | 日期面板变化回调 | function(date: moment, mode: string) | 无 | | onSelect | 点击选择日期回调 | function(date: moment) | 无 |