mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
14 lines
443 B
TypeScript
14 lines
443 B
TypeScript
import { genVirtualTable } from 'rc-table';
|
|
|
|
import type { InternalTableProps } from '../InternalTable';
|
|
|
|
/**
|
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
|
*/
|
|
export default genVirtualTable((prev, next) => {
|
|
const { _renderTimes: prevRenderTimes } = prev as InternalTableProps<any>;
|
|
const { _renderTimes: nextRenderTimes } = next as InternalTableProps<any>;
|
|
|
|
return prevRenderTimes !== nextRenderTimes;
|
|
});
|