Browse Source

feat: add onClick prop in Table.Summary.Row (#42175)

* feat: add onclick prop in Table.Summary.Row

* revocation summary.md and summary.tsx changes

* change the way INTERNAL_HOOKS are exported

* update rc-table version and INTERNAL_HOOKS export issue

* update renderVirtualList type in virtual-list.tsx

* reduce diff
pull/42344/head
Ylg12345 2 years ago
committed by GitHub
parent
commit
08e8e66fe6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/table/InternalTable.tsx
  2. 2
      components/table/demo/virtual-list.tsx
  3. 2
      package.json

3
components/table/InternalTable.tsx

@ -1,6 +1,5 @@
import classNames from 'classnames';
import type { TableProps as RcTableProps } from 'rc-table/lib/Table';
import { INTERNAL_HOOKS } from 'rc-table/lib/Table';
import { type TableProps as RcTableProps, INTERNAL_HOOKS } from 'rc-table';
import { convertChildrenToColumns } from 'rc-table/lib/hooks/useColumns';
import omit from 'rc-util/lib/omit';
import * as React from 'react';

2
components/table/demo/virtual-list.tsx

@ -51,7 +51,7 @@ const VirtualTable = <RecordType extends object>(props: TableProps<RecordType>)
useEffect(() => resetVirtualGrid, [tableWidth]);
const renderVirtualList = (rawData: object[], { scrollbarSize, ref, onScroll }: any) => {
const renderVirtualList = (rawData: readonly object[], { scrollbarSize, ref, onScroll }: any) => {
ref.current = connectObject;
const totalHeight = rawData.length * 54;

2
package.json

@ -144,7 +144,7 @@
"rc-slider": "~10.1.0",
"rc-steps": "~6.0.0",
"rc-switch": "~4.1.0",
"rc-table": "~7.31.0",
"rc-table": "~7.32.1",
"rc-tabs": "~12.6.0",
"rc-textarea": "~1.2.2",
"rc-tooltip": "~6.0.0",

Loading…
Cancel
Save