rangePicker组件无法对monthCell进行自定义
KwiTsukasa opened this issue · comments
KwiTsukasa commented
- 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>
)
}