code: function initScroll() {
        var _this2 = this;
  
        if (!this.$refs.scroll) return; // 设置scrollContent的最小高，实现高度不足时也有回弹效果
  
        if (this.$refs.scrollContent) {
          this.$refs.scrollContent.style.minHeight = "".concat(this.$refs.scroll.getBoundingClientRect().height + 1, "px");
        }
  
        var options = {
          probeType: this.probeType,
          click: this.click,
          scrollX: this.scrollX,
          scrollY: this.scrollY,
          scrollbar: this.scrollbar,
          pullDownRefresh: this.pullDown && this.pullDownConfig,
          pullUpLoad: this.pullUp && this.pullUpConfig,
          startY: this.startY,
          bounce: this.bounce,
          bounceTime: this.bounceTime,
          preventDefaultException: this.preventDefaultException
        };
        this.scroll = new BScroll(this.$refs.scroll, options);
        this.listenScroll && this.scroll.on('scroll', function (pos) {
          _this2.$emit('scroll', pos);
        });
        this.listenBeforeScrollStart && this.scroll.on('beforeScrollStart', function () {
          _this2.$emit('beforeScrollStart');
        });
        this.pullDown && this._initPullDown();
        this.pullUp && this._initPullUp();
      }
docs: 初始化scroll