发现问题
先看问题,小程序中,使用 Vant 的 Dialog 组件 + 小程序元素 input 组件,在弹出的时候 placeholder 文字会抖动一下,即初始位置偏上,再抖动到正确的位置上。
有问题的录屏:

经过尝试,修复问题:

我是这样修复的:
.dialog-input,
.dialog-input-placeholder {
height: 80rpx !important;
display: flex;
align-items: center;
}
以上献给也遇到同样坑的朋友,以及我的几乎一整天!😭
总结