fix(VnPaginate): disable pagination
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
e7b431e9ec
commit
5d58bb0c13
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue