mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-23 02:58:09 +09:00
37 lines
623 B
Vue
37 lines
623 B
Vue
<template>
|
|
<div class="mwermpua" v-if="!fetching">
|
|
<sequential-entrance animation="entranceFromTop" delay="25">
|
|
<slot :items="items"></slot>
|
|
</sequential-entrance>
|
|
<div class="more" v-if="more">
|
|
<ui-button @click="fetchMore()">{{ $t('@.load-more') }}</ui-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import paging from '../../../scripts/paging';
|
|
|
|
export default Vue.extend({
|
|
mixins: [
|
|
paging({
|
|
captureWindowScroll: false,
|
|
}),
|
|
],
|
|
|
|
props: {
|
|
pagination: {
|
|
required: true
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.mwermpua
|
|
> .more
|
|
margin-top 16px
|
|
|
|
</style>
|