{"action":"opened","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/4394","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/4394/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/4394/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/4394/events","html_url":"https://github.com/ant-design/ant-design/issues/4394","id":197880894,"number":4394,"title":"`monthCellContentRender` and `cellContentRender` not working","user":{"login":"codingfishman","id":5292705,"avatar_url":"https://avatars.githubusercontent.com/u/5292705?v=3","gravatar_id":"","url":"https://api.github.com/users/codingfishman","html_url":"https://github.com/codingfishman","followers_url":"https://api.github.com/users/codingfishman/followers","following_url":"https://api.github.com/users/codingfishman/following{/other_user}","gists_url":"https://api.github.com/users/codingfishman/gists{/gist_id}","starred_url":"https://api.github.com/users/codingfishman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingfishman/subscriptions","organizations_url":"https://api.github.com/users/codingfishman/orgs","repos_url":"https://api.github.com/users/codingfishman/repos","events_url":"https://api.github.com/users/codingfishman/events{/privacy}","received_events_url":"https://api.github.com/users/codingfishman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T16:37:40Z","updated_at":"2016-12-28T16:37:40Z","closed_at":null,"body":"<!-- Issue Template -->\r\n\r\n<!--\r\nantd 的用法咨询，建议通过以下渠道，官方 issues 目前没有足够精力提供此类咨询服务：\r\n\r\n1. [Stack Overflow](http://stackoverflow.com/questions/tagged/antd)\r\n2. [Segment Fault](https://segmentfault.com/t/antd)（中文）\r\n3. [Gitter](https://gitter.im/ant-design/ant-design)\r\n\r\n如果是报告 bug，请按照下列格式书写，并务必提供复现步骤，否则恕难解决，感谢您的支持。\r\n-->\r\n\r\n#### 发生问题的环境是：\r\n\r\n<!-- 务必提供 -->\r\n\r\n- antd 版本: 2.5.1\r\n- 操作系统及其版本: macOs Serria\r\n- 浏览器及其版本: Chrome 55\r\n\r\n#### 您做了什么？请提供尽可能详细的重现步骤。\r\n\r\n<!-- 如：引入 antd 了 Button -->\r\n使用 `MonthPicker`并且指定了 `monthCellContentRender` 和 `cellContentRender`，期望改变MonthPicker生成的节点内容\r\n#### 您期待的结果是:\r\n节点内容被改变\r\n<!-- 如：像官网一样正常显示 -->\r\n\r\n#### 实际上的结果是:\r\n两个属性无效。 看到[代码中](https://github.com/ant-design/ant-design/blob/master/components/date-picker/index.tsx#L45)在调用rc-calendar的MonthCalendar时，自己有包装一层Props，而且编译后的代码也只向 `MonthCalendar`传入了自己包装过的props，`MonthCalendar`自己的props，比如 `monthCellContentRender` 没有被传入，是不是这一步导致该属性被忽略了。\r\n<!-- 如：样式错位了，最好提供截图 -->\r\n\r\n#### 可重现的在线演示\r\n\r\n<!-- 请修改并 Fork http://codepen.io/benjycui/pen/KgPZrE?editors=001 -->\r\nhttp://codepen.io/anon/pen/pNMozv?editors=001#anon-login\r\n可打开控制台查看，发现函数并未执行。\r\n"}}
{"actor":{"display_login":"codingfishman"}}