antd
Version:
An enterprise-class UI design language and React components implementation
14 lines (13 loc) • 587 B
TypeScript
import type { DataNode, Key } from '@rc-component/tree/lib/interface';
import type { TreeProps } from '../Tree';
type FieldNames = TreeProps['fieldNames'];
/** 计算选中范围,只考虑expanded情况以优化性能 */
export declare function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames, }: {
treeData: DataNode[];
expandedKeys: Key[];
startKey?: Key;
endKey?: Key;
fieldNames?: FieldNames;
}): Key[];
export declare function convertDirectoryKeysToNodes(treeData: DataNode[], keys: Key[], fieldNames?: FieldNames): DataNode[];
export {};