fix: add prefix

This commit is contained in:
Benjy Cui 2016-02-02 20:47:52 +08:00
parent b42fb9f189
commit 51c33b9c51
2 changed files with 10 additions and 9 deletions

View File

@ -116,7 +116,7 @@ class FormItem extends React.Component {
const className = classNames({
[this._getLayoutClass(labelCol)]: true,
required: required,
'label-required': required,
});
return props.label ? (

View File

@ -4,14 +4,6 @@
label {
position: relative;
&.required:before {
display: inline-block;
margin-right: 4px;
content: "*";
font-family: SimSun;
font-size: @font-size-base;
color: @label-required-color;
}
> .@{iconfont-css-prefix} {
vertical-align: top;
@ -19,6 +11,15 @@ label {
}
}
.label-required:before {
display: inline-block;
margin-right: 4px;
content: "*";
font-family: SimSun;
font-size: @font-size-base;
color: @label-required-color;
}
// Input styles
.@{css-prefix}input {
.input;