XianFa Lang
XianFa Lang
在Table组件中当选中某行时,如何自定义样式。现在行只有hover样式,我想实现click之后也添加样式,用来标记当前选中行。不想使用rowSelection的单选或多选,这样就可以节省一列的宽度了。
Input组件使用服务端渲染出现document未定义异常: error given was: ReferenceError: document is not defined at ieGT9 (/antd/lib/input/index.js:35:22) at Input.renderInput (/antd/lib/input/index.js:129:26) at Input.render (/antd/lib/input/index.js:145:42) at [object Object].ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (/react/lib/ReactCompositeComponent.js:587:34) at [object Object].ReactCompositeComponentMixin._renderValidatedComponent (/react/lib/ReactCompositeComponent.js:607:32) at [object Object].wrapper [as...
## 问题描述 DatePicker日期显示格式不统一。具体见下图  建议按照format的格式来,即上图显示: 03/30/2016 应该更合理些。 我看了源码,能否在https://github.com/ant-design/ant-design/blob/develop-1.0.0/components/date-picker/createPicker.jsx 的中增加formatter属性,即: `` 我在本地添加上述代码后,可以实现格式统一,不知我的思路是否正确,效果图:  ## 示例 (Ant官网. http://ant.design/components/date-picker/#picker-demo-formatter)
## 问题描述 Badge组件服务器端渲染和客户端渲染存在差异性警告。如下:  ## 发生环境 - antd 版本:0.12.11: - 操作系统及版本: OS X El Capitan 10.11.4 - 浏览器及版本: chrome 49.0.2623.112 (64-bit) - 在线演示地址:http://ant.design/components/badge/#demo-basic