UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

18 lines (17 loc) 825 B
import type { Key, DataEntity, DataNode, GetCheckDisabled, BasicDataNode } from '../interface'; interface ConductReturnType { checkedKeys: Key[]; halfCheckedKeys: Key[]; } export declare function isCheckDisabled<TreeDataType>(node: TreeDataType): boolean; /** * Conduct with keys. * @param keyList current key list * @param keyEntities key - dataEntity map * @param mode `fill` to fill missing key, `clean` to remove useless key */ export declare function conductCheck<TreeDataType extends BasicDataNode = DataNode>(keyList: Key[], checked: true | { checked: false; halfCheckedKeys: Key[]; }, keyEntities: Record<Key, DataEntity<TreeDataType>>, maxLevel: number, levelEntities: Map<number, Set<DataEntity<TreeDataType>>>, getCheckDisabled?: GetCheckDisabled<TreeDataType>): ConductReturnType; export {};