From 2bbdc2c911fb053f5c935ac9c851a22592734f31 Mon Sep 17 00:00:00 2001 From: Kim Wing Fung <36523454+Kim-Wing-Fung@users.noreply.github.com> Date: Fri, 10 Jul 2020 09:53:26 +0100 Subject: [PATCH] feat: RangePicker onCalendarChange info support (#25568) * Include new parameters for onCalendarChange to match rc-picker v1.12.0 * Use correct highlighting * Update to rc-picker 1.12.1 * Include version information * Adjust version information Co-authored-by: Kim-Wing-Fung --- components/date-picker/index.en-US.md | 2 +- components/date-picker/index.zh-CN.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index 8c1d2bf5e0..cbe9c0365c 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -159,7 +159,7 @@ Added in `4.1.0`. | showTime | To provide an additional time selection | object \| boolean | [TimePicker Options](/components/time-picker/#API) | | | showTime.defaultValue | To set default time of selected date, [demo](#components-date-picker-demo-disabled-date) | [moment](http://momentjs.com/)\[] | \[moment(), moment()] | | | value | To set date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - | | -| onCalendarChange | Callback function, can be executed when the start time or the end time of the range is changing | function(dates: \[moment, moment], dateStrings: \[string, string]) | - | | +| onCalendarChange | Callback function, can be executed when the start time or the end time of the range is changing. `info` argument is added in 4.4.0 | function(dates: \[moment, moment], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | | | onChange | Callback function, can be executed when the selected time is changing | function(dates: \[moment, moment], dateStrings: \[string, string]) | - | |