From 9290b5f65320807cf1c56271d6dc1b48d2fc27a8 Mon Sep 17 00:00:00 2001 From: Royin Date: Fri, 10 Jan 2025 17:54:28 +0800 Subject: [PATCH 1/2] docs: update the description information of the range picker api --- components/date-picker/index.en-US.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index 2b84c13cdb..955b0c98ed 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -187,8 +187,8 @@ The following APIs are shared by DatePicker, RangePicker. | Events Name | Description | Arguments | Version | | | --- | --- | --- | --- | --- | -| calendarChange | Callback function, can be executed when the start time or the end time of the range is changing. | function(dates: \[dayjs, dayjs], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | | -| change | a callback function, can be executed when the selected time is changing | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string]) | | | +| calendarChange | Callback function, can be executed when the start time or the end time of the range is changing. | function(dates: \[dayjs, dayjs] \| null, dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | | +| change | a callback function, can be executed when the selected time is changing | function(dates: \[dayjs, dayjs] \| \[string, string] \| null, dateStrings: \[string, string]) | | | | ok | callback when click ok button | function(dates: \[dayjs, dayjs] \| \[string, string]) | | | #### formatType From bd1079656b97656f87243d87ec932b20b1ced4c0 Mon Sep 17 00:00:00 2001 From: Royin Date: Fri, 10 Jan 2025 18:12:38 +0800 Subject: [PATCH 2/2] Update index.zh-CN.md --- components/date-picker/index.zh-CN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index f878261bb5..2895465ad1 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -188,8 +188,8 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3OpRQKcygo8AAA | 事件名称 | 说明 | 回调参数 | | --- | --- | --- | -| calendarChange | 待选日期发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string], info: { range:`start`\|`end` }) | -| change | 日期范围发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string]) | +| calendarChange | 待选日期发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string] \| null, dateStrings: \[string, string], info: { range:`start`\|`end` }) | +| change | 日期范围发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string] \| null, dateStrings: \[string, string]) | | ok | 点击确定按钮的回调 | function(dates: \[dayjs, dayjs] \| \[string, string]) | #### formatType