fix
This commit is contained in:
parent
fb5bb950de
commit
f34bcf0c1d
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
>
|
>
|
||||||
<MkLoading v-if="fetching"/>
|
<MkLoading v-if="fetching"/>
|
||||||
|
|
||||||
<MkError v-else-if="error" @retry="reload()"/>
|
<MkError v-else-if="empty && error" @retry="reload()"/>
|
||||||
|
|
||||||
<div v-else-if="empty" key="_empty_" class="empty">
|
<div v-else-if="empty" key="_empty_" class="empty">
|
||||||
<slot name="empty">
|
<slot name="empty">
|
||||||
|
@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkButton>
|
</MkButton>
|
||||||
<MkLoading v-else class="loading"/>
|
<MkLoading v-else class="loading"/>
|
||||||
</div>
|
</div>
|
||||||
<slot :items="prividingItems" :fetching="fetching || moreFetching" :denyMoveTransition="denyMoveTransition"></slot>
|
<slot :items="providingItems" :fetching="fetching || moreFetching" :denyMoveTransition="denyMoveTransition"></slot>
|
||||||
<div v-show="!pagination.reversed && more" key="_more_" class="_margin">
|
<div v-show="!pagination.reversed && more" key="_more_" class="_margin">
|
||||||
<MkButton v-if="!moreFetching" v-appear="(enableInfiniteScroll && !props.disableAutoLoad) ? appearFetchMore : null" :class="$style.more" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary rounded @click="fetchMore">
|
<MkButton v-if="!moreFetching" v-appear="(enableInfiniteScroll && !props.disableAutoLoad) ? appearFetchMore : null" :class="$style.more" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary rounded @click="fetchMore">
|
||||||
{{ i18n.ts.loadMore }}
|
{{ i18n.ts.loadMore }}
|
||||||
|
@ -128,7 +128,7 @@ let scrollRemove = $ref<(() => void) | null>(null);
|
||||||
* 最新が0番目
|
* 最新が0番目
|
||||||
*/
|
*/
|
||||||
const items = ref<MisskeyEntityMap>(new Map());
|
const items = ref<MisskeyEntityMap>(new Map());
|
||||||
const prividingItems = computed(() => Array.from(items.value.values()));
|
const providingItems = computed(() => Array.from(items.value.values()));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* タブが非アクティブなどの場合に更新を貯めておく
|
* タブが非アクティブなどの場合に更新を貯めておく
|
||||||
|
|
Loading…
Reference in a new issue