diff --git a/components/table/InternalTable.tsx b/components/table/InternalTable.tsx index 2fa2a9c478..dacd8ff4b9 100644 --- a/components/table/InternalTable.tsx +++ b/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'; diff --git a/components/table/demo/virtual-list.tsx b/components/table/demo/virtual-list.tsx index fc125703c3..938494925a 100644 --- a/components/table/demo/virtual-list.tsx +++ b/components/table/demo/virtual-list.tsx @@ -51,7 +51,7 @@ const VirtualTable = (props: TableProps) 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; diff --git a/package.json b/package.json index 635b404200..bced111c3f 100644 --- a/package.json +++ b/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",