mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-19 08:20:30 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee8b9fd92c | ||
|
|
e924b80709 | ||
|
|
2ecdfbd24e | ||
|
|
461aa0df96 |
Vendored
+2
-6
@@ -60,8 +60,8 @@ export type UseTableOptions<D extends object> = {
|
||||
) => TableState<D>
|
||||
defaultColumn: Partial<Column<D>>
|
||||
initialRowStateKey: IdType<D>
|
||||
getSubRows: (row: Row<D>, relativeIndex: number) => Array<Row<D>>
|
||||
getRowID: (row: Row<D>, relativeIndex: number) => string
|
||||
getSubRows: (originalRow: D, relativeIndex: number) => Array<D>
|
||||
getRowID: (originalRow: D, relativeIndex: number) => IdType<D>
|
||||
debug: boolean
|
||||
}>
|
||||
|
||||
@@ -210,7 +210,6 @@ export namespace useExpanded {
|
||||
}
|
||||
|
||||
export type UseExpandedOptions<D extends object> = Partial<{
|
||||
getSubRows: (row: Row<D>, relativeIndex: number) => Array<Row<D>>
|
||||
manualExpandedKey: IdType<D>
|
||||
paginateExpandedRows: boolean
|
||||
getResetExpandedDeps: (i: TableInstance) => Array<any>
|
||||
@@ -356,9 +355,6 @@ export interface UseGroupByColumnProps<D extends object> {
|
||||
isGrouped: boolean
|
||||
groupedIndex: number
|
||||
toggleGroupBy: () => void
|
||||
}
|
||||
|
||||
export interface UseGroupByHeaderProps<D extends object> {
|
||||
getGroupByToggleProps: (props?: object) => object
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-table",
|
||||
"version": "7.0.0-beta.14",
|
||||
"version": "7.0.0-beta.15",
|
||||
"description": "A fast, lightweight, opinionated table and datagrid built on React",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/tannerlinsley/react-table#readme",
|
||||
|
||||
@@ -17,10 +17,10 @@ export const usePagination = hooks => {
|
||||
usePagination.pluginName = 'usePagination'
|
||||
|
||||
const defaultGetResetPageDeps = ({
|
||||
rows,
|
||||
data,
|
||||
manualPagination,
|
||||
state: { filters, groupBy, sortBy },
|
||||
}) => [manualPagination ? null : rows, filters, groupBy, sortBy]
|
||||
}) => [manualPagination ? null : data, filters, groupBy, sortBy]
|
||||
|
||||
function useMain(instance) {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user