From 6f8711f11cea11bcb3d067eab000cbec9341e2e4 Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Thu, 13 Apr 2023 11:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96css=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/textarea.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/form/textarea.js b/src/form/textarea.js index 27bc722..b2ca7e8 100644 --- a/src/form/textarea.js +++ b/src/form/textarea.js @@ -30,7 +30,7 @@ class TextArea extends Component { :host { display: flex; width: 100%; - // height: 80px; + min-height: 80px; user-select: none; -moz-user-select: none; color: var(--color-dark-1); @@ -42,7 +42,7 @@ class TextArea extends Component { .label { position: relative; width: 100%; - height: 100%; + min-height: 100%; font-size: 14px; border: 1px solid var(--color-grey-2); border-radius: inherit; @@ -54,7 +54,7 @@ class TextArea extends Component { flex: 1; min-width: 36px; width: 100%; - height: auto; + height: 100%; padding: 5px 8px; border: 0; border-radius: inherit;