fix: input suffix icon center by flex (#4159)

This commit is contained in:
云游君 2021-11-01 20:05:25 +08:00 committed by GitHub
parent e0a0502eb3
commit c1621a5164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View File

@ -166,7 +166,7 @@
@include m(feedback) {
.#{$namespace}-input__validateIcon {
display: inline-block;
display: inline-flex;
}
}
}

View File

@ -204,17 +204,10 @@
@include e(icon) {
width: 25px;
height: inherit;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
transition: all var(--el-transition-duration);
vertical-align: middle;
&:after {
content: '';
height: 100%;
width: 0;
display: inline-block;
vertical-align: middle;
}
}
@include e(validateIcon) {