/** * @file index.tsx * * @date 2021-05-25 16:27 */ import React from 'react'; import { ObjectSchema, ValueOf } from '../../lib/schema'; import './text'; import './link'; import './operation'; import './status'; import './timerange'; import { ColumnType } from 'antd/lib/table'; declare type Column = { key: string; format?: string; width?: number; [x: string]: any; } | { format: string; title: string; width?: number; [x: string]: any; } | ColumnType>; interface TablePropsInterface { columns: Column[]; schema: T; value: ValueOf[]; rowKey?: string | ((r: ValueOf, i?: number) => number | string); rowSelection?: any; expandable?: { expandedRowRender?: (record: any, index: number) => React.ReactNode; rowExpandable?: (record: any) => boolean; indentSize?: number; }; pagination?: { current: number; pageSize: number; total: number; [x: string]: any; }; loading?: boolean; onChange?: (pagination: any, filters: any, sorter: any) => void; } export declare const TableView: (props: TablePropsInterface) => JSX.Element; export {};