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