From 95c2c42a01daf1a3f244d24d49a0f711a8350bbf 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: Wed, 11 Oct 2023 11:59:22 +0300 Subject: [PATCH] Tree and Org chart .d.ts.updates --- components/lib/organizationchart/OrganizationChart.d.ts | 7 ++++++- components/lib/tree/Tree.d.ts | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/lib/organizationchart/OrganizationChart.d.ts b/components/lib/organizationchart/OrganizationChart.d.ts index ed111c638..eab2cb3ee 100755 --- a/components/lib/organizationchart/OrganizationChart.d.ts +++ b/components/lib/organizationchart/OrganizationChart.d.ts @@ -261,7 +261,12 @@ export interface OrganizationChartSlots { /** * Custom content template. */ - default(node: any): VNode[]; + default(scope: { + /** + * Current node + */ + node: any; + }): VNode[]; /** * Dynamic content template. * @todo diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index 7b5651d12..38fb2d71b 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -347,6 +347,10 @@ export interface TreeProps { * Defines valid slots in Tree component. */ export interface TreeSlots { + /** + * Default content slot. + */ + default(): VNode[]; /** * Custom loading icon template. * @param {Object} scope - loadingicon slot's params. @@ -399,12 +403,11 @@ export interface TreeSlots { * Optional slots. * @todo */ - [key: string]: (node: any) => VNode[]; } /** - * Defines valid slots in Tree component. + * Defines valid emits in Tree component. */ export interface TreeEmits { /**