From 8649d33a9af0f7a3cde4701deaa36dcffdd96959 Mon Sep 17 00:00:00 2001 From: qiang Date: Mon, 15 Jul 2019 17:58:54 +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=E9=BB=98=E8=AE=A4=E5=AE=BD=E5=BA=A6=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E4=BB=A5=E5=8F=8A=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=87=AA=E5=8A=A8=E5=9E=82=E7=9B=B4=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/input/index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/core/view/components/input/index.vue b/src/core/view/components/input/index.vue index 1fa736b2c..a6d6ff9ad 100644 --- a/src/core/view/components/input/index.vue +++ b/src/core/view/components/input/index.vue @@ -257,6 +257,7 @@ uni-input { line-height: 1.4em; height: 1.4em; min-height: 1.4em; + overflow: hidden; } uni-input[hidden] { @@ -282,23 +283,26 @@ uni-input[hidden] { } .uni-input-placeholder, -.uni-input-input { - position: absolute; +.uni-input-input{ width: 100%; - height: 100%; - left: 0; - top: 0; } .uni-input-placeholder { + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); color: gray; overflow: hidden; text-overflow: clip; white-space: pre; word-break: keep-all; + pointer-events: none; } .uni-input-input { + display: block; + height: 100%; background: none; color: inherit; opacity: inherit; -- GitLab