From 21c4ea0500692f162aceb9203042e4eae4582dbf Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Thu, 9 Apr 2026 15:12:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(tree):=20=E4=BF=AE=E6=AD=A3=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=88=B6=E7=BA=A7=E8=8A=82=E7=82=B9=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 onGetNodePaths 方法签名,接受 nodes 参数并返回 void - 移除方法的返回值类型定义 Record[] - 更新类型定义以匹配实际的函数实现 --- src/components/LeftTree/Basic/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }