Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Added size props to pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 18, 2019
1 parent 0b820f4 commit 7e11fbc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Pagination/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<ul class="pagination">
<li class="pagination__item">
<v-button
:size="size"
@click="onClickFirstPage"
aria-label="Go to first page"
:disabled="isInFirstPage"
Expand All @@ -12,6 +13,7 @@

<li class="pagination__item">
<v-button
:size="size"
@click.prevent="onClickPreviousPage"
aria-label="Go to previous page"
:disabled="isInFirstPage"
Expand All @@ -22,6 +24,7 @@

<li v-for="(page, i) in pages" :key="i" class="pagination__item">
<v-button
:size="size"
@click.prevent="onClickPage(page.name)"

:appearance="isPageActive(page.name) ? 'primary' : 'default'"
Expand All @@ -35,6 +38,7 @@

<li class="pagination__item">
<v-button
:size="size"
@click="onClickNextPage"
:disabled="isInLastPage"
aria-label="Go to next page"
Expand All @@ -45,6 +49,7 @@

<li class="pagination__item">
<v-button
:size="size"
@click="onClickLastPage"
:disabled="isInLastPage"
aria-label="Go to last page"
Expand Down Expand Up @@ -77,6 +82,10 @@ export default {
type: Number,
default: 10,
},
size: {
type: String,
default: '4',
},
},
data() {
return {
Expand Down

0 comments on commit 7e11fbc

Please sign in to comment.