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

rangePicker组件无法对monthCell进行自定义 #7587

Closed
1 task
KwiTsukasa opened this issue May 20, 2024 · 1 comment
Closed
1 task

rangePicker组件无法对monthCell进行自定义 #7587

KwiTsukasa opened this issue May 20, 2024 · 1 comment
Labels

Comments

@KwiTsukasa
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

自定义月份单元格, 比如在特定月份打上标签, 或是高亮当前月份等功能

What does the proposed API look like?

({ current }) => {
if (current.month() === new Date().getMonth()) {
return (
<div class="ant-picker-cell-inner ant-picker-cell-now">
{`${current.month() + 1}月`}
</div>
)
}
return (
<div class="ant-picker-cell-inner">
{`${current.month() + 1}月`}
</div>
)
}
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant