fix: Input style use show-password and clearable (#2168) (#2169)

* fix: Input style use show-password and clearable

* fix: replace Input classname
This commit is contained in:
Enoch Qin
2021-06-08 14:37:38 +08:00
committed by GitHub
parent a99232f582
commit c77e570d1c
2 changed files with 8 additions and 1 deletions

View File

@@ -10,7 +10,8 @@
'el-input-group--append': $slots.append,
'el-input-group--prepend': $slots.prepend,
'el-input--prefix': $slots.prefix || prefixIcon,
'el-input--suffix': $slots.suffix || suffixIcon || clearable || showPassword
'el-input--suffix': $slots.suffix || suffixIcon || clearable || showPassword,
'el-input--suffix--password-clear': clearable && showPassword
},
$attrs.class
]"

View File

@@ -220,6 +220,12 @@
.#{$namespace}-input__inner {
padding-right: 30px;
}
@include m(password-clear) {
.#{$namespace}-input__inner {
padding-right: 55px;
}
}
}
@include m(prefix) {