滑动加载

         <InfiniteScroll
            initialLoad={false}
            pageStart={0}
            threshold={10000}
            loadMore={() => {
              this.qryMeteDataTableList(treeNodeInfo, '', false);
            }}
            hasMore={isHasMore}
            useWindow={false}
          >
            <CategoryTree
              treeData={datasourceAndCatalogArr}
              loadAsyncData={this.onLoadData}
              handlePressEnter={this.onSearch}
              treeBoxClass={styles.setTreeBoxClass}
              renderLineIcon={this.renderLineIcon}
              handleAsyncSearch={() => {}}
              onExpand={this.setNodeInfo}
              {...res}
            />
          </InfiniteScroll>

 

posted @ 2021-02-02 14:17  lipu1993  阅读(59)  评论(0编辑  收藏  举报