Compare commits

...

3 Commits

Author SHA1 Message Date
tamaina 8a9eb73b6b add comment 2023-07-31 04:17:21 +00:00
tamaina db99018821 Merge branch 'pag-back' into noman 2023-07-31 01:33:39 +00:00
tamaina 0449c1a7ea prividingItems 2023-07-31 01:33:25 +00:00
2 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkButton>
<MkLoading v-else class="loading"/>
</div>
<slot :items="Array.from(items.values())" :fetching="fetching || moreFetching" :denyMoveTransition="denyMoveTransition"></slot>
<slot :items="prividingItems" :fetching="fetching || moreFetching" :denyMoveTransition="denyMoveTransition"></slot>
<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">
{{ i18n.ts.loadMore }}
@ -133,6 +133,7 @@ let scrollRemove = $ref<(() => void) | null>(null);
* 最新が0番目
*/
const items = ref<MisskeyEntityMap>(new Map());
const prividingItems = computed(() => Array.from(items.value.values()));
/**
* タブが非アクティブなどの場合に更新を貯めておく

View File

@ -66,6 +66,8 @@ export class NoteManager {
* Ref
* user, renote, replyを持たない
* nullは削除済みであることを表す
*
* 使
*/
private notesSource: Map<Note['id'], CachedNoteSource>;