Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can provide form infinite loading #3025

Closed
kkfive opened this issue May 29, 2022 · 0 comments
Closed

Can provide form infinite loading #3025

kkfive opened this issue May 29, 2022 · 0 comments
Labels
feature request New feature or request

Comments

@kkfive
Copy link

kkfive commented May 29, 2022

This function solves the problem (这个功能解决的问题)

API提供的数据不能返回页码,但是支持分页查询。因此并不能只用传统的分页来加载第二页,只能够将表格滑动到底部(可能存在阈值)来触发。(当返回的数量为空或者小于请求的limit时表示末页)(可能每页返回的数量也不一致)

Can't return to the page number API provides data, but support paging query. So not only the traditional paging to load the second page, only to be able to form the slide to the bottom (there may be a threshold value) to trigger. (when the return to the number of empty or less than the limit of requests that at the end of the page) (might not consistent returns the number of each page)

Expected API (期望的 API)

事实上,我认为只需要在表格滚动到底部时派发一个事件来执行滚动到底部的操作即可。

<template>
<n-data-table
    @scrollEnd='fn'
  />
</template>

In fact, I think you just need to scroll to the bottom in the table when handing out an event to perform scroll to the bottom of the operation.

@github-actions github-actions bot added the feature request New feature or request label May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant