Tree and Org chart .d.ts.updates

pull/4591/head^2
Tuğçe Küçükoğlu 2023-10-11 11:59:22 +03:00
parent 9cac35d0ba
commit 95c2c42a01
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

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