mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
change form
This commit is contained in:
parent
e3fc0bcab2
commit
4ace891cd6
@ -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;
|
||||
});
|
||||
|
@ -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/",
|
||||
|
Loading…
Reference in New Issue
Block a user