mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 07:36:44 -06:00
43930e6a84
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* Update storage.ts
* Update storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* 🍕
* wip
* wip
* wip
* wip
* wip
* wip
* Update deck-storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update store.ts
* wip
* wip
* wip
* wip
* Update init.ts
* wip
* wip
* Update pizzax.ts
* wip
* wip
* Update timeline.vue
* Update init.ts
* wip
* wip
* Update init.ts
47 lines
1,017 B
Vue
47 lines
1,017 B
Vue
<template>
|
|
<div class="cxiknjgy">
|
|
<slot :items="items"></slot>
|
|
<div class="empty" v-if="empty" key="_empty_">
|
|
<slot name="empty"></slot>
|
|
</div>
|
|
<div class="more" v-show="more" key="_more_">
|
|
<MkButton class="button" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary>
|
|
<template v-if="!moreFetching">{{ $t('loadMore') }}</template>
|
|
<template v-if="moreFetching"><MkLoading inline/></template>
|
|
</MkButton>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import MkButton from './button.vue';
|
|
import paging from '@/scripts/paging';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
MkButton
|
|
},
|
|
|
|
mixins: [
|
|
paging({}),
|
|
],
|
|
|
|
props: {
|
|
pagination: {
|
|
required: true
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.cxiknjgy {
|
|
> .more > .button {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
height: 48px;
|
|
min-width: 150px;
|
|
}
|
|
}
|
|
</style>
|