From 1949fa03a2392556b69bf5b3894db14c9671d997 Mon Sep 17 00:00:00 2001 From: rex Date: Thu, 31 Jan 2019 11:41:03 +0800 Subject: [PATCH] =?UTF-8?q?[bugfix]=20Field:=20=E4=BF=AE=E5=A4=8D=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E5=9B=BE=E6=A0=87=E6=9C=AA=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 #1261 --- packages/field/index.less | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/field/index.less b/packages/field/index.less index 80f1d196..ef9f3468 100644 --- a/packages/field/index.less +++ b/packages/field/index.less @@ -11,24 +11,24 @@ } &__input { - border: 0; - margin: 0; - padding: 0; + display: block; width: 100%; height: 24px; - resize: none; - display: block; - text-align: left; min-height: 24px; - color: @text-color; + padding: 0; + margin: 0; line-height: inherit; - box-sizing: border-box; + color: @text-color; + text-align: left; background-color: transparent; + border: 0; + box-sizing: border-box; + resize: none; &--disabled { - opacity: 1; color: @gray-dark; background-color: transparent; + opacity: 1; } &--center { @@ -49,7 +49,9 @@ } &__clear-root { + display: flex; height: 24px; + align-items: center; } &__clear, @@ -61,8 +63,8 @@ &__clear, &__icon-container { padding: 0 10px; - line-height: inherit; margin-right: -10px; + line-height: inherit; vertical-align: middle; } @@ -83,8 +85,8 @@ } &__error-message { - color: @red; font-size: 12px; + color: @red; text-align: left; } }