Update dynamic slot typing

pull/3711/head
Tuğçe Küçükoğlu 2023-03-07 16:40:44 +03:00
parent e2747c5ae8
commit 98f0eb4a7f
2 changed files with 8 additions and 7 deletions

View File

@ -102,7 +102,7 @@ export interface OrganizationChartSlots {
* Dynamic content template.
* @todo
*/
// [key: string](node: any): VNode[];
[key: string]: (node: any) => VNode[];
}
/**

View File

@ -7,6 +7,7 @@
* @module tree
*
*/
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
/**
@ -167,12 +168,12 @@ export interface TreeSlots {
* Optional slots.
* @todo
*/
// [key: string](scope: {
/**
* Tree node instance
*/
// node: TreeNode;
// }):VNode[];
[key: string]: (scope: {
/**
* Tree node instance
*/
node: TreeNode;
}) => VNode[];
}
/**