feat: PaginationComponent

This commit is contained in:
Net 2024-07-01 11:44:20 +07:00
parent 0356160376
commit 6e64a041f0

View file

@ -0,0 +1,25 @@
<script setup lang="ts">
const currentPage = defineModel<number>('currentPage', { default: 1 });
const maxPage = defineModel<number>('maxPage', { default: 1 });
withDefaults(
defineProps<{
fetchData?: (...args: unknown[]) => void;
}>(),
{},
);
</script>
<template>
<q-pagination
claess="pagination"
v-model="currentPage"
:max="maxPage"
direction-links
active-color="primary"
gutter="sm"
@update:model-value="fetchData"
/>
</template>
<style scoped></style>