Skip to content

Commit d038fb3

Browse files
committed
feat: add paginationRowModel to table defaults
1 parent 114f788 commit d038fb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/components/Table.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type TableSlots<T> = {
8484
import { computed } from 'vue'
8585
import { defu } from 'defu'
8686
import { Primitive } from 'reka-ui'
87-
import { FlexRender, getCoreRowModel, getFilteredRowModel, getSortedRowModel, getExpandedRowModel, useVueTable } from '@tanstack/vue-table'
87+
import { FlexRender, getCoreRowModel, getFilteredRowModel, getSortedRowModel, getExpandedRowModel, getPaginationRowModel, useVueTable } from '@tanstack/vue-table'
8888
import { upperFirst } from 'scule'
8989
import { useLocale } from '../composables/useLocale'
9090
@@ -125,6 +125,7 @@ const tableApi = useVueTable(defu(props.tanstackOptions, {
125125
onSortingChange: (updaterOrValue: Updater<SortingState>) => valueUpdater(updaterOrValue, sortingState),
126126
getExpandedRowModel: getExpandedRowModel(),
127127
onExpandedChange: (updaterOrValue: Updater<ExpandedState>) => valueUpdater(updaterOrValue, expandedState),
128+
getPaginationRowModel: getPaginationRowModel(),
128129
state: {
129130
get globalFilter() {
130131
return globalFilterState.value

0 commit comments

Comments
 (0)