/** * shouldCellUpdate 缓存容器:跟踪 dataSource/component 引用与 filterInList 列表长度。 * 调用方(ProEditTable 顶层)通过 useRef 持有按实例隔离的容器,避免 module-level Map * 在多实例场景下交叉污染;实例卸载后缓存随宿主一起释放。 * 未传 caches 时退化为单次内联 Map(不缓存历史,shouldCellUpdate 始终首次比较)。 */ export interface CellCacheRefs { /** 跟踪 fieldProps.dataSource 引用变化 */ dataSourceRef: Map; /** 跟踪 column.component 函数引用变化(外部 list 异步加载时闭包刷新) */ componentRef: Map; /** 跟踪 filterInList 列长度变化(行增删导致索引偏移) */ listLength: Map; } /** * 编辑模式分为 多行和单行两种 * 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外 * 多行模式下component设置即可 * render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身 * @param columns 表格配置数据 * @param config */ export declare const transformColumns: (columns: any[], config: any, caches?: CellCacheRefs) => any[];