choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
5 lines (4 loc) • 366 B
TypeScript
import { DataNode, Key } from '../../rc-components/tree/interface';
/** 计算选中范围,只考虑expanded情况以优化性能 */
export declare function calcRangeKeys(treeData: DataNode[], expandedKeys: Key[], startKey?: string, endKey?: string): string[];
export declare function convertDirectoryKeysToNodes(treeData: DataNode[], keys: string[]): DataNode[];