///
import { SizeType } from 'antd/es/config-provider/SizeContext';
import { InputState } from '@/constants';
import { CommonInputProps, FormItemProps, RouteParams } from '@/types';
export interface tele_queryParamsItems {
key: string;
value: any;
}
/**
*
* 望远镜表格列配置
*/
export interface TelescopeTableColumn {
title: string;
dataIndex: string;
width?: number | string;
isQuery?: boolean;
valueField?: string;
displayField?: string;
isHidden?: boolean;
backfillField?: string;
filterable?: boolean;
sortable?: boolean;
}
export interface TelescopeSharedProps {
showTree?: boolean;
treeKeyIndex?: string;
tele_name?: string;
tele_id?: string;
isMultiple?: boolean;
isSupportInput?: boolean;
isBackfillToMutilRecord?: boolean;
telescopeColumns?: TelescopeTableColumn[];
telescopeCustomParams?: RouteParams[];
}
export interface TelescopeProps extends FormItemProps, CommonInputProps, TelescopeSharedProps {
className?: string;
style?: React.CSSProperties;
placeholder?: string;
state: InputState;
isPagination?: boolean;
pageSize?: number;
url?: string;
tele_queryParams?: tele_queryParamsItems[];
treeWidth?: number;
tree_hasSearch?: boolean;
tree_placeholder?: string | undefined;
treeTitleIndex?: string;
treeChildrenIndex?: string;
treeUrl?: string;
tree_autoExpandParent?: boolean;
tree_extraQueryParams?: Array>;
tree_defaultSelectRoot?: boolean;
tree_expandLevel?: number;
onChange?: (value: any) => void;
onChangeValue?: (value: any) => void;
onClose?: () => void;
onBatchAdd?: (data: any[], rowIndex?: number | undefined) => void;
rowIndex: number | undefined;
value?: any;
isUseInTable?: boolean;
record?: any;
isInQueryFilter?: boolean;
queryFilterForm?: any;
size: SizeType;
onSelect?: (selectedRowKeys: any, selectedRows: any) => void;
onClear?: () => void;
onTelescopeInput?: (value: any) => void;
tele_query_cols?: number;
supportInputValue?: boolean;
iconPosition?: string;
teleExtraParams?: () => Record;
modalOpen?: boolean;
onModalOpenChange?: (open: boolean) => void;
}