perf(list): prefetch infinite scroll pages (#622)

This commit is contained in:
InfinityPacer
2026-08-01 07:27:36 +08:00
committed by GitHub
parent 9e35378ab4
commit 88f81ecce4
10 changed files with 251 additions and 21 deletions
@@ -1706,6 +1706,7 @@ onUnmounted(() => {
mode="intersect"
side="end"
:items="mobileDataList"
:margin="mobileDataList.length > 0 ? 280 : 0"
class="transfer-history-mobile-scroll"
@load="loadMobileHistory"
>
@@ -1715,6 +1716,14 @@ onUnmounted(() => {
</div>
</template>
<template #empty />
<template #error="{ props: retryProps }">
<div class="transfer-history-mobile-state d-flex flex-column ga-2" role="alert">
<span class="text-body-2 text-medium-emphasis">{{ t('common.serverConnectionFailed') }}</span>
<VBtn v-bind="retryProps" prepend-icon="mdi-refresh" size="small" variant="tonal">
{{ t('common.retry') }}
</VBtn>
</div>
</template>
<ProgressiveCardGrid
v-if="mobileDataList.length > 0"