- 博客(1)
- 收藏
- 关注
原创 微信小程序输入框键盘显示时,上推固定在底部的按钮
记录一下在学习中遇到的问题,如果错误还请指正!!! 当按钮固定在了底部,点击输入框时,键盘就把底部的按钮覆盖掉。有的时候想让它被键盘上推,就需要这样来实现了。 //JS代码 data: { bottom: 0, isBlur: true, blurBottom: 0, goods_name: "", }, //输入框聚焦时触发事件 onFoucs (e:any) { this.setData({ bottom: e.detail.height, isBlur: fal
2021-07-19 15:19:30
1806
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人