mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:23:50 +09:00
552 B
552 B
VFlexPagination
Vuero provides a custom pagination component called <VFlexPagination />.
Check the markup for more details about usage.
<script setup lang="ts">
const route = useRoute()
const currentPage = computed(() => {
try {
return Number.parseInt(route.query.page as string) || 1
}
catch {
// do nothing
}
return 1
})
</script>
<template>
<VFlexPagination
:item-per-page="8"
:total-items="512"
:current-page="currentPage"
:max-links-displayed="5"
/>
</template>