Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update title type doc #6695

Closed
wants to merge 1 commit into from

Conversation

Layouwen
Copy link
Contributor

@Layouwen Layouwen commented Aug 4, 2024

更新 calendar picker 的文档.
之前对 calendar view 更新了 false 隐藏的逻辑, calendar picker 内部依赖 view, 但文档没有同步过来

@@ -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` | `日期选择` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReactNode 是包括 false 的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样的话, 原本 calendar view 的文档部分 false 我也把他去掉吧?

Copy link
Contributor

github-actions bot commented Aug 4, 2024

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6695.surge.sh

@Layouwen Layouwen closed this Aug 4, 2024
@Layouwen Layouwen deleted the docs/calendar-picker branch August 4, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants