25 lines
888 B
TypeScript
25 lines
888 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { DataEntity, IconType } from 'rc-tree/lib/interface';
|
||
|
import type { Key, LegacyDataNode, RawValueType } from './interface';
|
||
|
interface LegacyContextProps {
|
||
|
checkable: boolean | React.ReactNode;
|
||
|
checkedKeys: Key[];
|
||
|
halfCheckedKeys: Key[];
|
||
|
treeExpandedKeys: Key[];
|
||
|
treeDefaultExpandedKeys: Key[];
|
||
|
onTreeExpand: (keys: Key[]) => void;
|
||
|
treeDefaultExpandAll: boolean;
|
||
|
treeIcon: IconType;
|
||
|
showTreeIcon: boolean;
|
||
|
switcherIcon: IconType;
|
||
|
treeLine: boolean;
|
||
|
treeNodeFilterProp: string;
|
||
|
treeLoadedKeys: Key[];
|
||
|
treeMotion: any;
|
||
|
loadData: (treeNode: LegacyDataNode) => Promise<unknown>;
|
||
|
onTreeLoad: (loadedKeys: Key[]) => void;
|
||
|
keyEntities: Record<RawValueType, DataEntity<any>>;
|
||
|
}
|
||
|
declare const LegacySelectContext: React.Context<LegacyContextProps>;
|
||
|
export default LegacySelectContext;
|