0.3.1 • Published 7 years ago

u-pagination.vue v0.3.1

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

Pagination

Examples

Basic

<u-linear-layout direction="vertical">
    <u-pagination :total="11"></u-pagination>
    <u-pagination :total="11" :page="6"></u-pagination>
</u-linear-layout>

Side & Around

Use side and around properties to change the count of displayed numbers.

<u-pagination :total="11" :page="6" :side="1" :around="3"></u-pagination>

Readonly & Disabled

<u-linear-layout direction="vertical">
    <u-pagination :total="11" readonly></u-pagination>
    <u-pagination :total="11" disabled></u-pagination>
</u-linear-layout>

API

Attrs/Props

Attr/PropTypeDefaultDescription
pageNumber1Current page number
totalNumber11Total count of pages
sideNumber2Count of pages at side position
aroundNumber5Count of pages around the current position
readonlyBooleanfalseReadonly
disabledBooleanfalseDisabled

Slots

SlotDescription
(default)

Events

@select

Emit when selecting a page.

PropertyTypeDescription
$event.pageNumberPage number to select
0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago