fix(form): required has bug

This commit is contained in:
songwanli2025@163.com 2020-01-17 14:25:24 +08:00
parent f6df6c90f1
commit 1b3e5ddd55

View File

@ -62,13 +62,13 @@
position: relative;
}
}
@include m(right-label-aligned) {
@include m(required) {
@include b(form-item-label) {
@include once {
text-align: right;
&::after {
display: none;
&::after {
@include once {
content: ' *';
}
color: $--error-6;
}
&::before {
@include once {
@ -77,17 +77,36 @@
color: $--error-6;
}
}
}
@include m(required) {
@include b(form-item-label) {
&::after {
@include m(no-label) {
&::before {
@include once {
content: '*';
content: '* ';
white-space: pre-wrap;
}
color: $--error-6;
}
}
}
@include m(right-label-aligned) {
@include b(form-item-label) {
@include once {
text-align: right;
&::after {
display: none;
}
}
}
}
@include m(left-label-aligned) {
@include b(form-item-label) {
@include once {
text-align: left;
&::before {
display: none;
}
}
}
}
@include b(form-item-label) {
@include once {
display: inline-block;