mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
feat(Pagination): allow using pagination buttons as links (#114)
This commit is contained in:
@@ -3,5 +3,15 @@ const page = ref(5)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UPagination v-model:page="page" :total="100" :sibling-count="1" show-edges />
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p>With buttons (default)</p>
|
||||
<UPagination v-model:page="page" :total="100" :sibling-count="1" show-edges />
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<p>With links</p>
|
||||
<UPagination v-model:page="page" :total="100" :to="page => ({ query: { page } })" :sibling-count="1" show-edges />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user