import { IRow, ICell, IColumn, EditorUsage, IBodyCellNamePolicy, ISelection, ICellNN } from '../index.data'; import { FormulaManagerConfig } from '../formula-manager/index.data'; /** * 与外界交换数据的关键结构 * 包含cellIds(id1, null, null , id2) 这样的结构 * cells必须与cellIds对齐, 也是[cell1, null, null, cell2] 这样的结构 * 而cells如果从数据库回传, 则可能是 [cell1, cell2] 这样的结构, 则需要预处理进行对齐( 插入null ) */ export declare type IRowWithCell = IRow & { cells: ICell[]; }; export declare type Props = { env?: 'test'; usage: EditorUsage; columns: IColumn[]; rows: IRowWithCell[]; freezeAt?: { i: number; j: number; }; formulaType?: 'label' | 'id'; onSelectionChanged?: (selection: ISelection) => void; onError?: (e: Error) => void; formulaConfig?: ({ userFormula: 'byPosition'; } & FormulaManagerConfig) | ({ userFormula: 'byName'; bodyCellNamePolicy?: IBodyCellNamePolicy; } & FormulaManagerConfig); checkableConfig?: { isChecked(cell: ICellNN, row: IRow): boolean; checkable(cell: ICellNN, row: IRow): boolean; onCellChecked(checked: boolean, setCellData: (cellPatch: Partial) => void): void; }; rowNoTemplates?: string[]; disableAutoCalculate?: boolean; padding?: { right: number; bottom: number; }; };