mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +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
428 B
TypeScript
13 lines
428 B
TypeScript
import { genTable } from 'rc-table';
|
|
import type { InternalTableProps } from '../InternalTable';
|
|
|
|
/**
|
|
* Same as `rc-table` but we modify trigger children update logic instead.
|
|
*/
|
|
export default genTable((prev, next) => {
|
|
const { _renderTimes: prevRenderTimes } = prev as InternalTableProps<any>;
|
|
const { _renderTimes: nextRenderTimes } = next as InternalTableProps<any>;
|
|
|
|
return prevRenderTimes !== nextRenderTimes;
|
|
});
|