mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: add prefix
This commit is contained in:
parent
b42fb9f189
commit
51c33b9c51
@ -116,7 +116,7 @@ class FormItem extends React.Component {
|
||||
|
||||
const className = classNames({
|
||||
[this._getLayoutClass(labelCol)]: true,
|
||||
required: required,
|
||||
'label-required': required,
|
||||
});
|
||||
|
||||
return props.label ? (
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user