/// import { BaseTreeProps, KeygenResult, UpdateFunc } from '@sheinx/hooks'; import { JsstyleType, TreeRenderItemType, TreeProps } from './tree.type'; export interface TreeContextProps extends Omit, 'data' | 'childrenKey' | 'expanded' | 'active'>, Pick, 'actionOnClick' | 'onChange'> { jssStyle?: JsstyleType; id: KeygenResult; virtual?: boolean; level?: number; parentClickExpand?: boolean; doubleClickExpand?: boolean; data: DataItem; line: boolean; active: boolean; expanded: boolean; iconClass?: string; leafClass?: string | ((data: DataItem) => string); contentClass?: string | ((data: DataItem) => string); expandIcons?: (React.ReactNode | ((d: DataItem) => React.ReactNode))[]; childrenKey: keyof DataItem; renderItem: TreeRenderItemType; childrenClass?: ((data: DataItem) => string) | string; bindNode?: (id: KeygenResult, update: UpdateFunc, data: DataItem) => { expanded: boolean; active: boolean; }; bindContent: React.RefObject; fetching: boolean; inlineNode?: boolean; highlight?: boolean; loader?: (key: KeygenResult, data: DataItem) => void | Promise; setFetching: (value: boolean) => void; onToggle?: (id: KeygenResult, expanded?: boolean) => void; onTriggered?: () => void; onFetch: () => void; onDragOver?: (e: React.DragEvent) => void; onNodeClick: (data: DataItem, id: KeygenResult) => void; } export interface TreeVirtualContextProps extends Omit, 'data' | 'childrenKey' | 'active' | 'expanded'> { jssStyle?: JsstyleType; id: KeygenResult; level: number; expanded: boolean; parentClickExpand?: boolean; doubleClickExpand?: boolean; data: DataItem; line: boolean; active: boolean; iconClass?: string; leafClass?: string | ((data: DataItem) => string); contentClass?: string | ((data: DataItem) => string); expandIcons?: (React.ReactNode | ((d: DataItem) => React.ReactNode))[]; childrenKey: keyof DataItem; renderItem: TreeRenderItemType; childrenClass?: ((data: DataItem) => string) | string; bindContent: React.RefObject; fetching: boolean; inlineNode?: boolean; highlight?: boolean; loader?: (key: KeygenResult, data: DataItem) => void | Promise; setFetching: (value: boolean) => void; onToggle?: (id: KeygenResult, expanded?: boolean) => void; onFetch: () => void; onNodeClick: (data: DataItem, id: KeygenResult) => void; onChange?: (value: Value) => void; } //# sourceMappingURL=tree-content.type.d.ts.map