mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Merge branch 'master' of https://github.com/react-tools/react-table
This commit is contained in:
parent
9fa1396f26
commit
81dcfd8dec
@ -1,13 +1,13 @@
|
||||
{
|
||||
"dist/index.js": {
|
||||
"bundled": 104527,
|
||||
"minified": 48274,
|
||||
"gzipped": 12949
|
||||
"bundled": 104689,
|
||||
"minified": 48426,
|
||||
"gzipped": 13003
|
||||
},
|
||||
"dist/index.es.js": {
|
||||
"bundled": 103640,
|
||||
"minified": 47484,
|
||||
"gzipped": 12791,
|
||||
"bundled": 103802,
|
||||
"minified": 47636,
|
||||
"gzipped": 12848,
|
||||
"treeshaked": {
|
||||
"rollup": {
|
||||
"code": 80,
|
||||
|
||||
@ -182,6 +182,7 @@ This library is being built and maintained by me, @tannerlinsley and I am always
|
||||
<li>Robert Tajnšek</li>
|
||||
<li>Pekka Tapani</li>
|
||||
<li>Eric Lanehart (@pushred)</li>
|
||||
<li>Anish P Patel (@anishpatelyaadada)</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@ -17,7 +17,7 @@ The following options are supported via the main options object passed to `useTa
|
||||
- `initialState.sortBy: Array<Object<id: columnId, desc: Bool>>`
|
||||
- Must be **memoized**
|
||||
- An array of sorting objects. If there is more than one object in the array, multi-sorting will be enabled. Each sorting object should contain an `id` key with the corresponding column ID to sort by. An optional `desc` key may be set to true or false to indicated ascending or descending sorting for that column. This information is stored in state since the table is allowed to manipulate the filter through user interaction.
|
||||
- `manualSorting: Bool`
|
||||
- `manualSortBy: Bool`
|
||||
- Enables sorting detection functionality, but does not automatically perform row sorting. Turn this on if you wish to implement your own sorting outside of the table (eg. server-side or manual row grouping/nesting)
|
||||
- `disableSortBy: Bool`
|
||||
- Disables sorting for every column in the entire table.
|
||||
|
||||
@ -1,4 +1,24 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1576165979638,
|
||||
"files": [
|
||||
{
|
||||
"filename": "index.js",
|
||||
"size": 22689,
|
||||
"delta": 135
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1576044489324,
|
||||
"files": [
|
||||
{
|
||||
"filename": "index.js",
|
||||
"size": 22554,
|
||||
"delta": -79
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1576020969676,
|
||||
"files": [
|
||||
|
||||
@ -1,4 +1,24 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1576165986389,
|
||||
"files": [
|
||||
{
|
||||
"filename": "index.es.js",
|
||||
"size": 22515,
|
||||
"delta": 140
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1576044496748,
|
||||
"files": [
|
||||
{
|
||||
"filename": "index.es.js",
|
||||
"size": 22375,
|
||||
"delta": -76
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1576020979047,
|
||||
"files": [
|
||||
|
||||
@ -260,6 +260,18 @@ function isFunctionComponent(component) {
|
||||
return typeof component === 'function'
|
||||
}
|
||||
|
||||
function isReactComponent(component) {
|
||||
return isClassComponent(component) || isFunctionComponent(component)
|
||||
function isExoticComponent(component) {
|
||||
return (
|
||||
typeof component === 'object' &&
|
||||
typeof component.$$typeof === 'symbol' &&
|
||||
['react.memo', 'react.forward_ref'].includes(component.$$typeof.description)
|
||||
)
|
||||
}
|
||||
|
||||
function isReactComponent(component) {
|
||||
return (
|
||||
isClassComponent(component) ||
|
||||
isFunctionComponent(component) ||
|
||||
isExoticComponent(component)
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user