import React from "react"; import type { TableColumns } from "../Table"; import "./index.less"; /** * A MutableTable is a table supporting add/minus rows. * The table should contain at least 1 row. * If props.nextRow is undefined, the (+) button should be disabled. * * Attention: * dataSource must not be empty array. */ export interface SequenceColumnConfig { title: string; renderer: (index: number) => string; width: number; align: "left" | "center" | "right"; } export interface Props { dataSource: RowType[]; columns: TableColumns; onChange?: (values: RowType[]) => void; onRowCountChange?: (type: "add-row" | "remove-row") => void; nextRow?: RowType | true; fixedRowCount?: number; shouldRenderIfUpdate?: any; sequenceColumn?: Partial | "default"; scrollX?: "max-content" | "none" | number; scrollY?: number; bordered?: boolean; disabled?: boolean; } export declare const MutableTable: (props: Props) => React.JSX.Element;