diff --git a/src/components/LeftTree/Basic/index.d.ts b/src/components/LeftTree/Basic/index.d.ts index 2efd2d1..aec431b 100644 --- a/src/components/LeftTree/Basic/index.d.ts +++ b/src/components/LeftTree/Basic/index.d.ts @@ -16,7 +16,7 @@ export interface BasicLeftTreeProps extends Omit { /** 决定 onGetNodePaths 是否包含自身节点,默认 true */ getNodePathsIsIncludeOneself?: boolean; /** 获取父级节点 */ - onGetNodePaths?: () => Record[]; + onGetNodePaths?: (nodes: Record[]) => void; /** 获取数据 */ onGetData?: (data: Record[]) => void; }