mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Merge branch 'master' into develop-1.0.0
This commit is contained in:
commit
5f75a63e8e
@ -82,6 +82,11 @@ export default class FormItem extends React.Component {
|
||||
) : null;
|
||||
}
|
||||
|
||||
renderExtra() {
|
||||
const { prefixCls, extra } = this.props;
|
||||
return <div className={prefixClsFn(prefixCls, 'extra')}>{extra}</div>;
|
||||
}
|
||||
|
||||
getValidateStatus() {
|
||||
const { isFieldValidating, getFieldError, getFieldValue } = this.context.form;
|
||||
const field = this.getId();
|
||||
@ -178,7 +183,7 @@ export default class FormItem extends React.Component {
|
||||
this.renderValidateWrapper(
|
||||
children,
|
||||
this.renderHelp(),
|
||||
props.extra
|
||||
this.renderExtra(),
|
||||
)
|
||||
),
|
||||
];
|
||||
|
@ -102,6 +102,11 @@ input[type="checkbox"] {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.@{css-prefix}form-explain,
|
||||
.@{css-prefix}form-extra {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.@{css-prefix}form-text {
|
||||
display: inline-block;
|
||||
padding-right: 8px;
|
||||
|
Loading…
Reference in New Issue
Block a user