vue-scroller icon indicating copy to clipboard operation
vue-scroller copied to clipboard

源码中showInfiniteLayer判断有bug

Open yiyulong opened this issue 6 years ago • 1 comments

用v-show的话上拉加载的动画不显示showInfiniteLayer 为false 用v-if showInfiniteLayer 为 true

showInfiniteLayer () {
      let contentHeight = 0 
      this.content
        ? contentHeight = this.content.offsetHeight
        : void 666

      return this.onInfinite
        ? contentHeight > this.minContentHeight
        : false
    }

yiyulong avatar Jun 15 '18 06:06 yiyulong

改变minContentHeight的值 :minContentHeight="-1" 问题暂时解决

yiyulong avatar Jun 15 '18 06:06 yiyulong