monthCellContentRender
and cellContentRender
not working
#4394
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
发生问题的环境是:
您做了什么?请提供尽可能详细的重现步骤。
使用
MonthPicker
并且指定了monthCellContentRender
和cellContentRender
,期望改变MonthPicker生成的节点内容您期待的结果是:
节点内容被改变
实际上的结果是:
两个属性无效。 看到代码中在调用rc-calendar的MonthCalendar时,自己有包装一层Props,而且编译后的代码也只向
MonthCalendar
传入了自己包装过的props,MonthCalendar
自己的props,比如monthCellContentRender
没有被传入,是不是这一步导致该属性被忽略了。可重现的在线演示
http://codepen.io/anon/pen/pNMozv?editors=001#anon-login
可打开控制台查看,发现函数并未执行。
The text was updated successfully, but these errors were encountered: