mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
6f2bddd5a1
* chore: update demo * chore: adjust fixed style * chore: opt scroll height * chore: clean up * chore: update demo * chore: bump rc-virtual-list * chore: update deps * chore: bump rc-table * fix: clean up * chore: fix demo * test: add test case
13 lines
442 B
TypeScript
13 lines
442 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;
|
|
});
|