蚂蚁设计:如何在蚂蚁日历中仅选择特定月份的日期?

问题描述

我将antD 3.x版本与React配合使用。

问题:

当我选择日期(例如9月15日)时,圆圈显示为选中状态。没关系,但是...

[9月15日选定] [1]

当我选择8月或11月的下个月或上个月时,日期也显示为选定的日期

[仍然选择9月15日] [2]

那么我应该怎么做才能只选择特定月份的特定日期?

以下是文档,示例与我的问题类似:https://3x.ant.design/components/calendar/

即使我将日期设置为

        className="account-calendar__right-calendar"
        value={moment(['2020','08','15'])}
        onSelect={(value) => changeField('selectedDay',value)}
        fullscreen={false}
        dateFullCellRender={cell => this.calendarCells(cell)}
        headerRender={({value}) => this.calendarHeader(value,i)}
      />;```

  [1]: https://i.stack.imgur.com/0qNwy.png
  [2]: https://i.stack.imgur.com/25LLi.png

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)