Add 10/20/50/100 page-size pagination across treasury list pages.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user