Browse Source

change form

pull/957/head
yiminghe 9 years ago
parent
commit
4ace891cd6
  1. 2
      components/form/FormItem.jsx
  2. 2
      package.json

2
components/form/FormItem.jsx

@ -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;
});

2
package.json

@ -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…
Cancel
Save