2023-08-28 17:36:23 +08:00
|
|
|
import { genVirtualTable } from 'rc-table';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2023-08-28 17:36:23 +08:00
|
|
|
import type { InternalTableProps } from '../InternalTable';
|
2023-01-07 21:21:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
|
|
|
*/
|
2023-08-28 17:36:23 +08:00
|
|
|
export default genVirtualTable((prev, next) => {
|
2023-01-07 21:21:52 +08:00
|
|
|
const { _renderTimes: prevRenderTimes } = prev as InternalTableProps<any>;
|
|
|
|
const { _renderTimes: nextRenderTimes } = next as InternalTableProps<any>;
|
|
|
|
|
|
|
|
return prevRenderTimes !== nextRenderTimes;
|
|
|
|
});
|