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 { /**