Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 14, 2024
1 parent 0b0a4d9 commit d26a44c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/runtime/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ defineSlots<TableSlots<T>>()
// eslint-disable-next-line vue/no-dupe-keys
const ui = table()
const sortingState = defineModel<SortingState>('sorting', { default: undefined })
const sortingState = defineModel<SortingState>('sorting', { default: [] })
const paginationState = defineModel<PaginationState>('pagination', { default: undefined })
const columnFiltersState = defineModel<ColumnFiltersState>('columnFilters', { default: undefined })
const columnVisibilityState = defineModel<VisibilityState>('columnVisibility', { default: undefined })
const columnPinningState = defineModel<ColumnPinningState>('columnPinning', { default: undefined })
const rowSelectionState = defineModel<RowSelectionState>('rowSelection', { default: undefined })
const expandedState = defineModel<ExpandedState>('expanded', { default: undefined })
const columnFiltersState = defineModel<ColumnFiltersState>('columnFilters', { default: [] })
const columnVisibilityState = defineModel<VisibilityState>('columnVisibility', { default: {} })
const columnPinningState = defineModel<ColumnPinningState>('columnPinning', { default: {} })
const rowSelectionState = defineModel<RowSelectionState>('rowSelection', { default: {} })
const expandedState = defineModel<ExpandedState>('expanded', { default: {} })
const columns = computed<ColumnDef<T>[]>(() => props.columns ?? Object.keys(props.data[0] ?? {}).map((accessorKey: string) => ({ accessorKey, header: upperFirst(accessorKey) })))
Expand Down

0 comments on commit d26a44c

Please sign in to comment.