Skip to content

Commit

Permalink
feat(table): #494 add paginationSize prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jtommy committed Mar 5, 2023
1 parent 31a75ee commit db70c0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/oruga-next/src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -292,6 +293,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -581,6 +583,8 @@ export default defineComponent({
},
/** Rounded pagination if paginated */
paginationRounded: Boolean,
/** Size of pagination if paginated */
paginationSize: String,
rootClass: [String, Function, Array],
tableClass: [String, Function, Array],
wrapperClass: [String, Function, Array],
Expand Down
4 changes: 4 additions & 0 deletions packages/oruga/src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -300,6 +301,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -583,6 +585,8 @@ export default {
},
/** Rounded pagination if paginated */
paginationRounded: Boolean,
/** Size of pagination if paginated */
paginationSize: String,
rootClass: [String, Function, Array],
tableClass: [String, Function, Array],
wrapperClass: [String, Function, Array],
Expand Down

0 comments on commit db70c0d

Please sign in to comment.