0.1.2 • Published 6 years ago

rc-loadmore v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

rc-loadmore

a loadmore component for react

demo

install

npm install rc-loadmore

Usage

<RcLoadMore
  threshold={200}
  cb={() => {
    console.log('trigger cb...')
  }}
>
  <div>
    {this.renderContent()}
  </div>
</RcLoadMore>

API

propstype
thresholdnumber触发 cb() 时,滚动到页面底部的距离
timernumberdebounce 函数的 timer
disabledboolean组件是否生效
hasMoreboolean是否有更多内容,控制底部显示
loadingContentReact.NodehasMore === ture 时显示
noMoreContentReact.NodehasMore === false 时显示
cbfunction到底时触发的函数
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago