mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
91df688efd
* chore: basic prepare * chore: adjust render logic * chore: fix lint * chore: bump table * test: update snapshot
13 lines
427 B
TypeScript
13 lines
427 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;
|
|
});
|