Function getTreeCheckNodes
- getTreeCheckNodes(treeData, checkedKeys, halfCheckedKeys?, fieldNames?): {
checkedNodes: never[];
halfCheckedNodes: never[];
nodeArr: never[];
nodeMap: Map<any, any>;
nodeObj: {};
parentMap: Map<any, any>;
} | {
checkedNodes: string[];
halfCheckedNodes: string[];
nodeArr: any[];
nodeMap: Map<string, any>;
nodeObj: Record<string, any>;
parentMap: Map<string, string>;
} Parameters
- treeData: any[]
- checkedKeys: string[]
- halfCheckedKeys: string[] = []
- fieldNames: {
children?: string;
key?: string;
} = ...Optional
children?: string
Optional
key?: string
Returns {
checkedNodes: never[];
halfCheckedNodes: never[];
nodeArr: never[];
nodeMap: Map<any, any>;
nodeObj: {};
parentMap: Map<any, any>;
} | {
checkedNodes: string[];
halfCheckedNodes: string[];
nodeArr: any[];
nodeMap: Map<string, any>;
nodeObj: Record<string, any>;
parentMap: Map<string, string>;
}
主动获取树的半选/全选节点