0
点赞
收藏
分享

微信扫一扫

关于家里betterScroll后,页面无法滚动的问题

TiaNa_na 2022-04-23 阅读 55
vue.js

县获取完数据,这样内容高度大于容器高度,就可以滑动了
mounted(){
setTimeout(() => {
var scroll = new BScroll( this.$refs.wrapper, {
click: true,
probeType: 1,
});
// scroll.on(‘scroll’,(pos) => {
// this.handleToScroll(pos)
// });
// scroll.on(‘touchEnd’,(pos) => {
// this.handleToTouchEnd(pos)
// })
},500)
}
在这里插入图片描述

举报

相关推荐

0 条评论