@ucloud-fe/react-components
Version:
UCloud react components
20 lines (19 loc) • 510 B
TypeScript
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>;