From bd09b6f8d8c84e49665f1e2b5cf948ed652a9067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 13 Oct 2023 15:24:54 +0300 Subject: [PATCH] Fixed #4608 - Tree: Invalid typing of the default slot --- components/lib/tree/Tree.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index 38fb2d71b..a7ddd7ba4 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -350,7 +350,12 @@ export interface TreeSlots { /** * Default content slot. */ - default(): VNode[]; + default(scope: { + /** + * Tree node instance + */ + node: TreeNode; + }): VNode[]; /** * Custom loading icon template. * @param {Object} scope - loadingicon slot's params.