From 6bdd748997041de6da8a1ccf0b50a1eab4f96420 Mon Sep 17 00:00:00 2001 From: Avan Date: Sun, 4 Aug 2024 23:04:28 +0800 Subject: [PATCH] docs: update title type doc --- src/components/calendar-picker/calendar-picker.en.md | 2 +- src/components/calendar-picker/calendar-picker.zh.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/calendar-picker/calendar-picker.en.md b/src/components/calendar-picker/calendar-picker.en.md index db326e76d2..cd9f57a791 100644 --- a/src/components/calendar-picker/calendar-picker.en.md +++ b/src/components/calendar-picker/calendar-picker.en.md @@ -42,7 +42,7 @@ When the user needs to enter a date, he can select it in the pop-up date panel. | renderBottom | The bottom information of date render function. | `(date: Date) => ReactNode \| null \| undefined` | - | | selectionMode | The selection mode. Disable selection when this prop is not set. | `'single' \| 'range'` | - | | shouldDisableDate | Set whether the date is disable selection. The min and max Settings are ignored | `(date: Date) => boolean` | - | -| title | The title of calendar | `React.ReactNode` | `Date selection` | +| title | The title of calendar | `React.ReactNode \| false` | `Date selection` | | value | The selected date or date range. | `Date \| null` when selection mode is "single". `[Date, Date] \| null` when selection mode is "range" | - | | weekStartsOn | Week starts on which day. | `'Monday' \| 'Sunday'` | `'Sunday'` | | renderDate | Custom date rendering. | `(date: Date) => ReactNode` | - | 5.28.0 | diff --git a/src/components/calendar-picker/calendar-picker.zh.md b/src/components/calendar-picker/calendar-picker.zh.md index 5b19f55524..2aa6102a6a 100644 --- a/src/components/calendar-picker/calendar-picker.zh.md +++ b/src/components/calendar-picker/calendar-picker.zh.md @@ -41,7 +41,7 @@ | renderBottom | 日期底部信息的渲染函数 | `(date: Date) => ReactNode \| null \| undefined` | - | | selectionMode | 选择模式,不设置的话表示不支持选择 | `'single' \| 'range'` | - | | shouldDisableDate | 判断日期是否可选,使用后会忽略 min 和 max 设置 | `(date: Date) => boolean` | - | -| title | 日期选择器的标题 | `React.ReactNode` | `日期选择` | +| title | 日期选择器的标题 | `React.ReactNode \| false` | `日期选择` | | value | 选择的日期 | 单选模式下为 `Date \| null`,多选模式下为 `[Date, Date] \| null` | - | | weekStartsOn | 每周以周几作为第一天 | `'Monday' \| 'Sunday'` | `'Sunday'` | | renderDate | 自定义日期渲染 | `(date: Date) => ReactNode` | - | 5.28.0 |