UNPKG

@antv/s2-react

Version:
21 lines (20 loc) 692 B
import { SpreadSheet, TableDataCell, type DataItem, type ViewMeta } from '@antv/s2'; import React from 'react'; import './index.less'; export interface CustomEditComponentProps { style: React.CSSProperties; onChange: (value: string) => void; onSave: () => void; value: DataItem; spreadsheet: SpreadSheet; cell: TableDataCell | null; } type DateCellEdit = (meta: ViewMeta, cell: TableDataCell) => void; type EditCellProps = { onDataCellEditStart?: DateCellEdit; onDataCellEditEnd?: DateCellEdit; trigger?: number; CustomComponent?: React.FunctionComponent<CustomEditComponentProps>; }; export declare const EditCell: React.FC<EditCellProps>; export {};