mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix fieldOption
This commit is contained in:
parent
bf7caf9dda
commit
df326bea67
@ -119,7 +119,7 @@ class FormItem extends React.Component {
|
|||||||
const context = this.context;
|
const context = this.context;
|
||||||
const props = this.props;
|
const props = this.props;
|
||||||
let children = null;
|
let children = null;
|
||||||
if (context.form && props.id && props.fieldOption) {
|
if (context.form && props.id) {
|
||||||
const child = React.Children.only(props.children);
|
const child = React.Children.only(props.children);
|
||||||
const size = {};
|
const size = {};
|
||||||
if (typeof child.type === 'function' && !child.props.size) {
|
if (typeof child.type === 'function' && !child.props.size) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "antd",
|
"name": "antd",
|
||||||
"version": "0.12.0-beta.27",
|
"version": "0.12.0-beta.28",
|
||||||
"title": "Ant Design",
|
"title": "Ant Design",
|
||||||
"description": "一个 UI 设计语言",
|
"description": "一个 UI 设计语言",
|
||||||
"homepage": "http://ant.design/",
|
"homepage": "http://ant.design/",
|
||||||
|
Loading…
Reference in New Issue
Block a user