|
@ -9,6 +9,7 @@ export default class FormItem extends React.Component { |
|
|
static defaultProps = { |
|
|
static defaultProps = { |
|
|
hasFeedback: false, |
|
|
hasFeedback: false, |
|
|
prefixCls: 'ant-form', |
|
|
prefixCls: 'ant-form', |
|
|
|
|
|
colon: true, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
static propTypes = { |
|
|
static propTypes = { |
|
@ -197,7 +198,7 @@ export default class FormItem extends React.Component { |
|
|
const itemClassName = { |
|
|
const itemClassName = { |
|
|
[`${prefixCls}-item`]: true, |
|
|
[`${prefixCls}-item`]: true, |
|
|
[`${prefixCls}-item-with-help`]: !!this.getHelpMsg(), |
|
|
[`${prefixCls}-item-with-help`]: !!this.getHelpMsg(), |
|
|
[`${prefixCls}-no-colon`]: !this.props.colon, |
|
|
[`${prefixCls}-item-no-colon`]: !props.colon, |
|
|
[`${props.className}`]: !!props.className, |
|
|
[`${props.className}`]: !!props.className, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|