UNPKG

@ucloud-fe/react-components

Version:
20 lines (19 loc) 510 B
import { ReactNode } from 'react'; export declare type Key = string; export declare type SelectedMap = Record<Key, true>; export declare type Group = Record<Key, GroupDetail>; export interface GroupDetail { disabledKeys: Key[]; keys: Key[]; } export interface TreeData { key: Key; title: ReactNode; children?: TreeData[]; disabled?: boolean; isParent?: boolean; } export interface LoadData { (key: Key): Promise<void>; } export declare type ChangeKeyMap = Record<Key, boolean>;