vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Home Page:https://antdv.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KwiTsukasa opened this issue · comments

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