diff --git a/src/core/view/components/input/index.vue b/src/core/view/components/input/index.vue index 1fa736b2c6c5f23541f9e7199219d99f1fed630a..a6d6ff9ad4ef48d3c670fa3e614b2267a118fba9 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;