fix(components): [el-input] missing margin between two icons (#5942) (#6017)

Co-authored-by: 寇超 <kouchao@xindong.com>
This commit is contained in:
kouchao 2022-02-15 16:00:32 +08:00 committed by GitHub
parent 7b7afc8f49
commit 3c8ff3aece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@
[nsInput.m('prefix')]: $slots.prefix || prefixIcon,
[nsInput.m('suffix')]:
$slots.suffix || suffixIcon || clearable || showPassword,
[nsInput.m('suffix--password-clear')]: clearable && showPassword,
[nsInput.m('suffix--password-clear')]: showClear && showPwdVisible,
},
$attrs.class,
]"

View File

@ -106,6 +106,7 @@
font-size: map.get($input-font-size, 'default');
cursor: pointer;
transition: var(--el-transition-color);
margin-left: 8px;
&:hover {
color: var(--el-input-clear-hover-color);
@ -262,15 +263,15 @@
);
@include m(suffix) {
.#{$namespace}-input__inner {
padding-right: $input-padding-size-with-extra-icon;
}
@include m(password-clear) {
.#{$namespace}-input__inner {
padding-right: 55px;
}
}
.#{$namespace}-input__inner {
padding-right: $input-padding-size-with-extra-icon;
}
}
@include m(prefix) {