diff --git a/docs/examples/input/mixed-input.vue b/docs/examples/input/mixed-input.vue
index c7f06e9731..efd1966af9 100644
--- a/docs/examples/input/mixed-input.vue
+++ b/docs/examples/input/mixed-input.vue
@@ -16,7 +16,7 @@
class="input-with-select"
>
-
+
@@ -37,7 +37,7 @@
-
+
diff --git a/packages/components/input/src/input.vue b/packages/components/input/src/input.vue
index 5174765a91..a94b24c06c 100644
--- a/packages/components/input/src/input.vue
+++ b/packages/components/input/src/input.vue
@@ -92,17 +92,17 @@
{{ textLength }} / {{ attrs.maxlength }}
+
+
+
-
-
-
diff --git a/packages/theme-chalk/src/input.scss b/packages/theme-chalk/src/input.scss
index 736d1c3dfd..e74dc56d1f 100644
--- a/packages/theme-chalk/src/input.scss
+++ b/packages/theme-chalk/src/input.scss
@@ -130,8 +130,6 @@
color: var(--el-input-icon-color);
font-size: map.get($input-font-size, 'default');
cursor: pointer;
- transition: var(--el-transition-color) !important;
- margin-left: 8px;
&:hover {
color: var(--el-input-clear-hover-color);
@@ -149,7 +147,7 @@
background: getCssVar('fill-color', 'blank');
line-height: initial;
display: inline-block;
- padding: 0 5px;
+ padding-left: 8px;
}
}
@@ -232,6 +230,13 @@
> :last-child {
margin-right: 8px;
}
+
+ > :first-child {
+ &,
+ &.#{$namespace}-input__icon {
+ margin-left: 0;
+ }
+ }
} @else {
> :first-child {
margin-left: 8px;
@@ -246,6 +251,7 @@
justify-content: center;
align-items: center;
transition: all var(--el-transition-duration);
+ margin-left: 8px;
}
@include e(validateIcon) {