From 653398aa0b3e4ac497b2f7ebb7405183cf7e6c45 Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 11 Jan 2020 21:36:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20input=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=AE=BE=E7=BD=AE=20top=20=E6=A0=B7=E5=BC=8F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E9=94=99=E4=BD=8D=E7=9A=84=E9=97=AE=E9=A2=98=20fixed?= =?UTF-8?q?=20#1222?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/input/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/view/components/input/index.vue b/src/core/view/components/input/index.vue index c3a27a73e..89a9cef92 100644 --- a/src/core/view/components/input/index.vue +++ b/src/core/view/components/input/index.vue @@ -282,10 +282,12 @@ uni-input[hidden] { .uni-input-wrapper, .uni-input-form { - display: block; + display: flex; position: relative; width: 100%; height: 100%; + flex-direction: column; + justify-content: center; } .uni-input-placeholder, @@ -295,15 +297,15 @@ uni-input[hidden] { .uni-input-placeholder { position: absolute; - top: 50%; + top: auto !important; left: 0; - transform: translateY(-50%); color: gray; overflow: hidden; text-overflow: clip; white-space: pre; word-break: keep-all; pointer-events: none; + line-height: inherit; } .uni-input-input { -- GitLab