import { Ref } from 'react'; import type { TreeDataType } from '@/types'; import { TreeProps } from 'antd'; export interface RsTreeProps extends Omit { tableId?: string; showTree?: boolean; rs_id?: string; autoExpandParent: boolean; defaultExpandAll?: boolean; titleIndex?: string; keyIndex?: string; childrenIndex?: string; hasSearch: boolean; placeholder?: string; dataSource?: 'fixValue' | 'request'; treeData?: TreeDataType[] | null; url?: string; style?: any; contentHeight?: number; handleSelect?: (value: any) => void; onLoad?: (data: TreeDataType[]) => void; onSelect?: (value: any, selectRecord: Record) => void; onExpand?: (value: any) => void; onNodeDrop?: (info: Record, pos: Record) => boolean | Promise; forwardRef?: Ref; tree_extraQueryParams?: Array>; defaultWidth?: number; isInTable?: boolean; tree_defaultSelectRoot?: boolean; tree_draggable?: boolean; treeRef?: any; showMark?: boolean; markDefault?: boolean; markLabel?: string | undefined; markKey?: string | undefined; onTreeMarkChange?: (check: boolean) => void; tree_keepPreSelection?: boolean; tree_titleColor?: Array>; tree_nodeDraggable?: string; tree_allowChildren?: string; tree_expandLevel?: number; }