fix color of form help text

This commit is contained in:
afc163
2016-04-25 16:25:57 +08:00
parent 112317e0ea
commit 287c45292d
2 changed files with 11 additions and 1 deletions
+6 -1
View File
@@ -47,6 +47,11 @@ class FormItem extends React.Component {
);
}
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();
@@ -142,7 +147,7 @@ class FormItem extends React.Component {
this.renderValidateWrapper(
children,
this.renderHelp(),
props.extra
this.renderExtra(),
)
),
];
+5
View File
@@ -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;