可能是子元素没有撑开父元素

用better-scroll的话可能在元素还没有生成的时候,new BScroll(el) 没有找到目标节点

如果pc可以移动端不可以那就试试监听滚动内容区的touchmove事件并阻止事件冒泡

let popContent = this.$refs.bscroll;
popContent.addEventListener('touchmove', e => e.stopPropagation(), false)

 

 

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-10-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案