提交 653398aa 编写于 作者: Q qiang

fix: 解决 input 组件设置 top 样式导致错位的问题 fixed #1222

上级 b495521f
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册