mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
@@ -179,12 +179,12 @@ const ui = pagination()
|
|||||||
|
|
||||||
<PaginationNext v-if="showControls || !!slots.next" as-child>
|
<PaginationNext v-if="showControls || !!slots.next" as-child>
|
||||||
<slot name="next">
|
<slot name="next">
|
||||||
<UButton :color="color" :variant="variant" :size="size" :icon="nextIcon" :to="page < pageCount ? to?.(pageCount) : undefined" />
|
<UButton :color="color" :variant="variant" :size="size" :icon="nextIcon" :to="page < pageCount ? to?.(page + 1) : undefined" />
|
||||||
</slot>
|
</slot>
|
||||||
</PaginationNext>
|
</PaginationNext>
|
||||||
<PaginationLast v-if="showControls || !!slots.last" as-child>
|
<PaginationLast v-if="showControls || !!slots.last" as-child>
|
||||||
<slot name="last">
|
<slot name="last">
|
||||||
<UButton :color="color" :variant="variant" :size="size" :icon="lastIcon" :to=" to?.(pageCount)" />
|
<UButton :color="color" :variant="variant" :size="size" :icon="lastIcon" :to="to?.(pageCount)" />
|
||||||
</slot>
|
</slot>
|
||||||
</PaginationLast>
|
</PaginationLast>
|
||||||
</PaginationList>
|
</PaginationList>
|
||||||
|
|||||||
Reference in New Issue
Block a user