import { ReactFC } from '@formily/react'; import { SearchProps } from 'antd/lib/input'; import { ColumnProps, TableProps } from 'antd/lib/table'; import React from 'react'; type IFilterOption = boolean | ((option: any, keyword: string) => boolean); type IFilterSort = (optionA: any, optionB: any) => number; export interface ISelectTableColumnProps extends ColumnProps { key: string | number; } export interface ISelectTableProps extends TableProps { mode?: 'multiple' | 'single'; dataSource?: any[]; optionAsValue?: boolean; valueType?: 'all' | 'parent' | 'child' | 'path'; showSearch?: boolean; searchProps?: SearchProps; primaryKey?: string | ((record: any) => string); filterOption?: IFilterOption; filterSort?: IFilterSort; onSearch?: (keyword: string) => void; onChange?: (value: any, options: any) => void; value?: any; } export declare const SelectTable: ReactFC & { Column: React.FC>; }; export default SelectTable;