Explorar el Código

Input: update line-height (#10064)

杨奕 hace 7 años
padre
commit
99e5a6b4ba
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/theme-chalk/src/input.scss

+ 4 - 1
packages/theme-chalk/src/input.scss

@@ -80,7 +80,7 @@
     display: inline-block;
     font-size: inherit;
     height: $--input-height;
-    line-height: 1;
+    line-height: $--input-height;
     outline: none;
     padding: 0 15px;
     transition: $--border-transition-base;
@@ -186,6 +186,7 @@
 
     @include e(inner) {
       height: $--input-medium-height;
+      line-height: $--input-medium-height;
     }
 
     .el-input__icon {
@@ -197,6 +198,7 @@
 
     @include e(inner) {
       height: $--input-small-height;
+      line-height: $--input-small-height;
     }
 
     .el-input__icon {
@@ -208,6 +210,7 @@
 
     @include e(inner) {
       height: $--input-mini-height;
+      line-height: $--input-mini-height;
     }
 
     .el-input__icon {