import * as React from 'react'; import SpreadSheet from '../../../../SpreadSheetProvider'; import { IColumn, IRow } from '../../../../index.data'; import { FormulaManagerConfig } from '../../../../formula-manager/index.data'; import { SpreadSheetProps } from '../../../..'; import { IRowWithCell } from '../../../../SpreadSheetProvider/index.data'; import { helpers } from '../../helper'; const columns: IColumn[] = [ { width: 60, type: 'numeric' }, { width: 60, type: 'numeric' }, { width: 60, type: 'numeric' }, { width: 60, type: 'numeric' }, ]; const rows = [ { id: 1, i: 0, type: 'body' as any, level: 1, area: 'flatten' as any, cells: [ { id: 11, value: 1, rowId: 1, i: 0, j: 0, colspan: 4, rowspan: 2, dataType: 'number', type: 'numeric', }, null, null, null, ], }, { id: 2, i: 1, type: 'body' as any, area: 'flatten' as any, level: 1, cells: [null, null, null, null], }, ]; class Story extends React.Component<{ env?: 'test' }> { ref = React.createRef(); render() { return (
插入列
); } } const formulaConfig: SpreadSheetProps['formulaConfig'] = { userFormula: 'byName', } as any; export default Story;