Browse Source

Input: update line-height (#10064)

杨奕 7 năm trước cách đây
mục cha
commit
99e5a6b4ba
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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 {