change form

This commit is contained in:
yiminghe 2016-01-28 21:53:57 +08:00
parent e3fc0bcab2
commit 4ace891cd6
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class FormItem extends React.Component {
const props = this.props;
const children = React.Children.map(props.children, (child) => {
if (typeof child.type === 'function' && !child.props.size) {
return React.cloneElement(child, {size: 'large'});
return React.cloneElement(child, { size: 'large' });
}
return child;
});

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "0.12.0-beta.30",
"version": "0.12.0-beta.31",
"title": "Ant Design",
"description": "一个 UI 设计语言",
"homepage": "http://ant.design/",