0
0
Fork 0

Actualizar src/components/ui/VnPaginate.vue

This commit is contained in:
Javier Segarra 2024-04-18 09:36:24 +00:00
parent 817a8fcc71
commit 846c85ed1a
1 changed files with 2 additions and 9 deletions

View File

@ -83,12 +83,7 @@ const store = arrayData.store;
onMounted(() => { onMounted(() => {
if (props.autoLoad) fetch(); if (props.autoLoad) fetch();
}); });
// watch(
// () => arrayData,
// () => {
// console.error(this);
// }
// );
watch( watch(
() => props.data, () => props.data,
() => { () => {
@ -132,7 +127,6 @@ async function paginate() {
} }
function endPagination() { function endPagination() {
// hasMoreData.value = store.hasMoreData.value;
isLoading.value = false; isLoading.value = false;
emit('onFetch', store.data); emit('onFetch', store.data);
emit('onPaginate'); emit('onPaginate');
@ -188,8 +182,7 @@ defineExpose({ fetch, addFilter });
</QCard> </QCard>
</div> </div>
</div> </div>
<!-- <pre>hasMoreData*{{ hasMoreData }}</pre>
<pre>arrayData.hasMoreData**{{ arrayData.store.hasMoreData }}</pre> -->
<QInfiniteScroll <QInfiniteScroll
v-if="store.data" v-if="store.data"
@load="onLoad" @load="onLoad"