fix(VnPaginate): disable pagination
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Alex Moreno 2024-11-19 09:47:59 +01:00
parent e7b431e9ec
commit 5d58bb0c13
2 changed files with 2 additions and 2 deletions

View File

@ -325,6 +325,8 @@ function handleOnDataSaved(_) {
}
function handleScroll() {
if ($props.crudModel.disableInfiniteScroll) return;
const tMiddle = tableRef.value.$el.querySelector('.q-table__middle');
const { scrollHeight, scrollTop, clientHeight } = tMiddle;
const isAtBottom = Math.abs(scrollHeight - scrollTop - clientHeight) <= 40;

View File

@ -141,8 +141,6 @@ async function fetch(params) {
}
async function paginate() {
if (props.disableInfiniteScroll || !store.hasMoreData) return;
const { page, rowsPerPage, sortBy, descending } = pagination.value;
if (!props.url) return;