Further work on VPaginator component

This commit is contained in:
Sockenklaus
2021-11-09 23:53:56 +01:00
parent 1abb63f57d
commit 856c81fdf3
3 changed files with 88 additions and 35 deletions

View File

@@ -26,7 +26,13 @@
<h5 v-show="rows.length === 0" class="text-muted">Keine Daten anzuzeigen...</h5>
<VPaginator />
<VPaginator
:radius="1"
:page="store.page"
:first-page="store.meta.first_page"
:last-page="store.meta.last_page"
@set-page="paginatorSetPage"
/>
</template>
@@ -69,6 +75,10 @@ const iconSort = computed(() => {
return 'bi-sort-' + (sort_by.asc ? 'down' : 'up')+'-alt'
})
function paginatorSetPage(e : number){
store.setPage(e)
}
</script>
<style scoped>