mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
14 lines
429 B
TypeScript
14 lines
429 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;
|
|
});
|