|
24 | 24 | * - All expanded props, move into expandable |
25 | 25 | */ |
26 | 26 |
|
27 | | -import type { CompareProps } from '@rc-component/context/lib/Immutable'; |
28 | 27 | import { clsx } from 'clsx'; |
29 | 28 | import ResizeObserver from '@rc-component/resize-observer'; |
30 | | -import { getTargetScrollBarSize } from '@rc-component/util/lib/getScrollBarSize'; |
31 | | -import useEvent from '@rc-component/util/lib/hooks/useEvent'; |
32 | | -import pickAttrs from '@rc-component/util/lib/pickAttrs'; |
33 | | -import getValue from '@rc-component/util/lib/utils/get'; |
34 | | -import warning from '@rc-component/util/lib/warning'; |
| 29 | +import { |
| 30 | + getDOM, |
| 31 | + get as getValue, |
| 32 | + getTargetScrollBarSize, |
| 33 | + isEqual, |
| 34 | + pickAttrs, |
| 35 | + useEvent, |
| 36 | + useLayoutEffect, |
| 37 | + warning, |
| 38 | +} from '@rc-component/util'; |
35 | 39 | import * as React from 'react'; |
36 | 40 | import Body from './Body'; |
37 | 41 | import ColGroup from './ColGroup'; |
@@ -73,9 +77,11 @@ import StickyScrollBar from './stickyScrollBar'; |
73 | 77 | import Column from './sugar/Column'; |
74 | 78 | import ColumnGroup from './sugar/ColumnGroup'; |
75 | 79 | import { getColumnsKey, validateValue, validNumberValue } from './utils/valueUtil'; |
76 | | -import { getDOM } from '@rc-component/util/lib/Dom/findDOMNode'; |
77 | | -import isEqual from '@rc-component/util/lib/isEqual'; |
78 | | -import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect'; |
| 80 | + |
| 81 | +export type CompareProps<T extends React.ComponentType<any>> = ( |
| 82 | + prevProps: Readonly<React.ComponentProps<T>>, |
| 83 | + nextProps: Readonly<React.ComponentProps<T>>, |
| 84 | +) => boolean; |
79 | 85 |
|
80 | 86 | export const DEFAULT_PREFIX = 'rc-table'; |
81 | 87 |
|
|
0 commit comments