Component({
properties: {
},
data:{
tabBarHeight:0,
},
lifetimes:{
attached: function(options) {
let _this = this
let query = wx.createSelectorQuery();
query.select('.cu-bar').boundingClientRect(rect=>{
let height = rect.height;
_this.setData({
tabBarHeight: height
})
}).exec();
}
}
})
微信小程序 获取自定义tabbar的高度
- 本文作者: 真实の幻梦
- 本文链接: https://nancy-svy.github.io/post/customTabbarHeight/
- 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
0%
召唤看板娘
x
感谢您的支持,我会继续努力的!
扫码打赏,你说多少就多少