ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open KwiTsukasa opened this issue 1 year ago • 0 comments
trafficstars

  • [ ] 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>
)
}

KwiTsukasa avatar May 20 '24 03:05 KwiTsukasa