refs #7136 perf: remove onPaginate event from html
This commit is contained in:
parent
9ed8a0b51d
commit
8fc1fa2493
|
@ -3,7 +3,7 @@ import { ref, toRefs, computed, watch } from 'vue';
|
|||
import { onMounted } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import FetchData from 'src/components/FetchData.vue';
|
||||
const emit = defineEmits(['update:modelValue', 'update:options', 'onPaginate']);
|
||||
const emit = defineEmits(['update:modelValue', 'update:options']);
|
||||
|
||||
const $props = defineProps({
|
||||
modelValue: {
|
||||
|
@ -169,7 +169,6 @@ async function onScroll(scrollEv) {
|
|||
if (direction === 'decrease') return;
|
||||
if (optionIndex > 0 && to === lastIndex && isLoading.value === false) {
|
||||
isLoading.value = true;
|
||||
// emit('onPaginate');
|
||||
await $props.fetchRef.paginate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue