mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +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;
|
) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderExtra() {
|
||||||
|
const { prefixCls, extra } = this.props;
|
||||||
|
return <div className={prefixClsFn(prefixCls, 'extra')}>{extra}</div>;
|
||||||
|
}
|
||||||
|
|
||||||
getValidateStatus() {
|
getValidateStatus() {
|
||||||
const { isFieldValidating, getFieldError, getFieldValue } = this.context.form;
|
const { isFieldValidating, getFieldError, getFieldValue } = this.context.form;
|
||||||
const field = this.getId();
|
const field = this.getId();
|
||||||
@ -178,7 +183,7 @@ export default class FormItem extends React.Component {
|
|||||||
this.renderValidateWrapper(
|
this.renderValidateWrapper(
|
||||||
children,
|
children,
|
||||||
this.renderHelp(),
|
this.renderHelp(),
|
||||||
props.extra
|
this.renderExtra(),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
@ -102,6 +102,11 @@ input[type="checkbox"] {
|
|||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.@{css-prefix}form-explain,
|
||||||
|
.@{css-prefix}form-extra {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
.@{css-prefix}form-text {
|
.@{css-prefix}form-text {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
Loading…
Reference in New Issue
Block a user