uview2.0 u--input 解决键盘弹起时,输入框提示文字也被推上去的问题

1.问题图片 由于uview的u–input组件默认在键盘弹起时,自动上推页面,所以导致
在这里插入图片描述
2.解决方法 将adjustPosition设置为fakse style中添加样式

<u-input  :adjustPosition='false' disabled placeholder='社区分类' v-model="model1.categoryName" border="none" suffixIcon="arrow-right"
						>
					</u-input>
<style lang="scss">
page{
      
      
		background: #9acd02;
		min-height: 100vh;
	}
</style>


猜你喜欢

转载自blog.csdn.net/oneya1/article/details/127426645
今日推荐