解决: better-scroll.esm.js?f40f:180 [BScroll warn]: EventEmitter has used unknown event type: "pullingUp"

时间:2021-08-26 11:36:01   收藏:0   阅读:89

改为这样,把所有值设为true

mounted() {
      // 滚动条
      this.scroll = new BScroll(this.$refs.wrapper, {
          click: true,
          observeDOM: true,
          observeImage: true,
          // 监听
          probeType: this.probeType,
          // 上拉加载更多
          pullUpLoad: this.pullUpLoad
      })
}

上面的代码是封装过的,直接一点的如下所示:

mounted() {
      // 滚动条
      this.scroll = new BScroll(this.$refs.wrapper, {
          click: true,
          observeDOM: true,
          observeImage: true,
          // 监听
          probeType: 3,
          // 上拉加载更多
          pullUpLoad: true
      })
}

原文:https://www.cnblogs.com/leoych/p/15188389.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!