|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
import PureRenderMixin from 'rc-util/lib/PureRenderMixin';
|
|
|
|
|
import Row from '../row';
|
|
|
|
@ -41,22 +42,22 @@ export default class FormItem extends React.Component<FormItemProps, any> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
|
prefixCls: React.PropTypes.string,
|
|
|
|
|
label: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.node]),
|
|
|
|
|
labelCol: React.PropTypes.object,
|
|
|
|
|
help: React.PropTypes.oneOfType([React.PropTypes.node, React.PropTypes.bool]),
|
|
|
|
|
validateStatus: React.PropTypes.oneOf(['', 'success', 'warning', 'error', 'validating']),
|
|
|
|
|
hasFeedback: React.PropTypes.bool,
|
|
|
|
|
wrapperCol: React.PropTypes.object,
|
|
|
|
|
className: React.PropTypes.string,
|
|
|
|
|
id: React.PropTypes.string,
|
|
|
|
|
children: React.PropTypes.node,
|
|
|
|
|
colon: React.PropTypes.bool,
|
|
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
|
|
|
labelCol: PropTypes.object,
|
|
|
|
|
help: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
|
|
|
|
validateStatus: PropTypes.oneOf(['', 'success', 'warning', 'error', 'validating']),
|
|
|
|
|
hasFeedback: PropTypes.bool,
|
|
|
|
|
wrapperCol: PropTypes.object,
|
|
|
|
|
className: PropTypes.string,
|
|
|
|
|
id: PropTypes.string,
|
|
|
|
|
children: PropTypes.node,
|
|
|
|
|
colon: PropTypes.bool,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static contextTypes = {
|
|
|
|
|
form: React.PropTypes.object,
|
|
|
|
|
vertical: React.PropTypes.bool,
|
|
|
|
|
form: PropTypes.object,
|
|
|
|
|
vertical: PropTypes.bool,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
context: FormItemContext;
|
|
|
|
|