/** * 结果表格(暂时不支持结果排序) */ import React from 'react'; import { BaseSelection, BaseSelectionProps } from './Selection'; import type { Option, Options } from '../select2/select'; export interface ResultTableSelectionProps extends BaseSelectionProps { title?: string; placeholder?: string; searchable?: boolean; onSearch?: Function; columns: Array<{ name: string; label: string; [propName: string]: any; }>; cellRender: (column: { name: string; label: string; [propName: string]: any; }, option: Option, colIndex: number, rowIndex: number) => JSX.Element; } export interface ResultTableSelectionState { tableOptions: Options; searching: Boolean; searchTableOptions: Options; } export declare class BaseResultTableSelection extends BaseSelection { static contextType?: React.Context | undefined; static defaultProps: { cellRender: (column: { [propName: string]: any; name: string; label: string; }, option: Option, colIndex: number, rowIndex: number) => JSX.Element; placeholder: string; renderValue: (option: import("../select2/types").OptionType, states: import("./Selection").ItemRenderStates) => JSX.Element; multiple: boolean; clearable: boolean; cascade: boolean; }; state: ResultTableSelectionState; static getDerivedStateFromProps(props: ResultTableSelectionProps): { tableOptions: Options; }; handleCloseItem(option: Option): void; search(inputValue: string): void; clearSearch(): void; renderTable(): JSX.Element; render(): JSX.Element; } export default BaseResultTableSelection;