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
This commit is contained in:
Ylg12345 2023-05-07 17:30:03 +08:00 committed by GitHub
parent 09f86bf0ce
commit 08e8e66fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

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

View File

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

View File

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