Files
CRM_Montzar/apps/web/src/components/treasury/TreasuryListPagination.vue
T

31 lines
670 B
Vue

<script setup lang="ts">
import { Pagination as APagination } from 'ant-design-vue';
const page = defineModel<number>('page', { required: true });
defineProps<{
total: number;
pageSize: number;
pageSizeOptions: string[];
showTotal: (total: number) => string;
}>();
const emit = defineEmits<{
'update:pageSize': [size: number];
}>();
</script>
<template>
<a-pagination
v-if="total > 0"
v-model:current="page"
:page-size="pageSize"
:total="total"
:page-size-options="pageSizeOptions"
show-size-changer
:show-total="showTotal"
style="margin-top: 16px"
@update:page-size="emit('update:pageSize', $event)"
/>
</template>