mirror of https://github.com/ElemeFE/element
Form: required FormItem displays asterisk when label is auto (#15144)
parent
01a4118c51
commit
993e9a12fb
|
@ -132,7 +132,8 @@
|
||||||
|
|
||||||
@include when(required) {
|
@include when(required) {
|
||||||
@include pseudo('not(.is-no-asterisk)') {
|
@include pseudo('not(.is-no-asterisk)') {
|
||||||
& > .el-form-item__label:before {
|
& > .el-form-item__label:before,
|
||||||
|
& .el-form-item__label-wrap > .el-form-item__label:before {
|
||||||
content: '*';
|
content: '*';
|
||||||
color: $--color-danger;
|
color: $--color-danger;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
|
|
Loading…
Reference in New Issue