import { TableProps as AntTableProps, TableColumnProps as AntTableColumnProps } from 'antd'; import './index.less'; export interface NewTableProps extends AntTableProps { custom?: boolean; columns?: Array; } export interface NewTableColumnProps extends AntTableColumnProps { styleType?: 'name' | 'text' | 'money' | 'time' | 'avatar' | 'action' | 'group' | undefined; defaultSymbol?: string; width?: number; defaultAvatar?: string; actionList?: Array | ((text?: any) => Array); groupMapping?: Array; defaultValue?: any; ediType?: 'input' | 'radio' | 'checkbox' | 'select' | 'searchSelect' | 'uploadImg' | 'uploadFile' | 'textArea' | 'custom' | 'switch' | 'inputNum' | 'datePicker' | 'rangePicker'; direction?: 'horizontal' | 'vertical'; checkId?: number; defaultVisible?: boolean; } interface MappingProps { label?: string | undefined; value?: string | number | undefined; icon?: any; color?: string | undefined; } interface actionProps { id?: number; label?: any; onClick?: (text: any) => void; children?: Array; } declare const Index: { (props: NewTableProps): JSX.Element; defaultProps: { columns: never[]; }; }; export default Index;