amis-rpc-design/node_modules/antd/es/table/RcTable/VirtualTable.js
2023-10-07 19:42:30 +08:00

15 lines
352 B
JavaScript

"use client";
import { genVirtualTable } from 'rc-table';
/**
* Same as `rc-table` but we modify trigger children update logic instead.
*/
export default genVirtualTable((prev, next) => {
const {
_renderTimes: prevRenderTimes
} = prev;
const {
_renderTimes: nextRenderTimes
} = next;
return prevRenderTimes !== nextRenderTimes;
});