mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
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:
parent
09f86bf0ce
commit
08e8e66fe6
@ -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';
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user