import * as React from 'react'; import SpreadSheet from '../../../SpreadSheetProvider'; import { IColumn } from '../../../index.data'; const columns: IColumn[] = [{ width: 60, type: 'numeric' }]; const rows = [ { id: 1, i: 0, type: 'body' as any, level: 1, cellIds: [1], cells: [{ id: 1, value: 1, j: 0 }], }, { id: 2, i: 1, type: 'body' as any, level: 2, cellIds: [2], cells: [{ id: 2, value: 2, j: 0 }], }, { id: 3, i: 2, type: 'body' as any, level: 2, cellIds: [3], cells: [{ id: 3, value: 3, j: 0 }], }, { id: 4, i: 3, type: 'body' as any, level: 1, cellIds: [4], cells: [{ id: 4, value: 4, j: 0 }], }, ]; class Story extends React.Component<{ env?: 'test' }> { ref = React.createRef(); render() { return (
目的: 检查删除行时, 相应操作是否正常, 并可正常撤销 / 重做
); } } export default Story;