2020-11-25 13:31:34 +01:00
|
|
|
<template>
|
2021-09-29 17:50:45 +02:00
|
|
|
<FormGroup class="uljviswt _debobigegoItem">
|
2020-11-25 13:31:34 +01:00
|
|
|
<template #label><slot name="label"></slot></template>
|
|
|
|
<slot :items="items"></slot>
|
|
|
|
<div class="empty" v-if="empty" key="_empty_">
|
|
|
|
<slot name="empty"></slot>
|
|
|
|
</div>
|
|
|
|
<FormButton v-show="more" class="button" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" primary>
|
2020-12-26 02:47:36 +01:00
|
|
|
<template v-if="!moreFetching">{{ $ts.loadMore }}</template>
|
2020-11-25 13:31:34 +01:00
|
|
|
<template v-if="moreFetching"><MkLoading inline/></template>
|
|
|
|
</FormButton>
|
|
|
|
</FormGroup>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import FormButton from './button.vue';
|
|
|
|
import FormGroup from './group.vue';
|
2021-03-23 09:30:14 +01:00
|
|
|
import paging from '@client/scripts/paging';
|
2020-11-25 13:31:34 +01:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
FormButton,
|
|
|
|
FormGroup,
|
|
|
|
},
|
|
|
|
|
|
|
|
mixins: [
|
|
|
|
paging({}),
|
|
|
|
],
|
|
|
|
|
|
|
|
props: {
|
|
|
|
pagination: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.uljviswt {
|
|
|
|
}
|
|
|
|
</style>
|