Skip to content

Commit

Permalink
fix(table): pagination size prop
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmarney authored Jun 22, 2023
1 parent 7c62f2b commit 126aba4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/oruga-next/src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
:paginationSize="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -585,7 +585,10 @@ export default defineComponent({
/** Rounded pagination if paginated */
paginationRounded: Boolean,
/** Size of pagination if paginated */
paginationSize: String,
paginationSize: {
type: String,
default: () => { return getValueByPath(getOptions(), 'table.paginationSize', 'small') }
},
rootClass: [String, Function, Array],
tableClass: [String, Function, Array],
wrapperClass: [String, Function, Array],
Expand Down
7 changes: 5 additions & 2 deletions packages/oruga/src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:root-class="paginationWrapperClasses"
:icon-pack="iconPack"
:rounded="paginationRounded"
:size="paginationSize"
:paginationSize="paginationSize"
@page-change="(event) => $emit('page-change', event)"
:aria-next-label="ariaNextLabel"
:aria-previous-label="ariaPreviousLabel"
Expand Down Expand Up @@ -587,7 +587,10 @@ export default {
/** Rounded pagination if paginated */
paginationRounded: Boolean,
/** Size of pagination if paginated */
paginationSize: String,
paginationSize: {
type: String,
default: () => { return getValueByPath(getOptions(), 'table.paginationSize', 'small') }
},
rootClass: [String, Function, Array],
tableClass: [String, Function, Array],
wrapperClass: [String, Function, Array],
Expand Down

0 comments on commit 126aba4

Please sign in to comment.