test tree 不选择父选择框

This commit is contained in:
2023-05-15 08:59:25 +08:00
parent 56769f4152
commit eb3f2e831c
6 changed files with 22 additions and 24 deletions

View File

@@ -13,6 +13,7 @@ export interface TreeData {
isLeaf: boolean;
hasNextSibling: boolean;
parentNode: Nullable<TreeData>;
selectParent: boolean;
}
interface ReplaceFields {
id: string;
@@ -38,7 +39,7 @@ declare class Tree {
treeForeach(tree: any, func: Function): void;
setChildrenChecked(checked: boolean, nodes: TreeData[]): void;
setParentChecked(checked: boolean, parent: TreeData): void;
setCheckedKeys(checked: boolean, checkStrictly: boolean | string, node: TreeData): void;
setCheckedKeys(checked: boolean, checkStrictly: boolean | string, node: TreeData): false | undefined;
getData(): TreeData[];
getKeys(): {
checkedKeys: any[];