Update dynamic slot typing
parent
e2747c5ae8
commit
98f0eb4a7f
|
@ -102,7 +102,7 @@ export interface OrganizationChartSlots {
|
|||
* Dynamic content template.
|
||||
* @todo
|
||||
*/
|
||||
// [key: string](node: any): VNode[];
|
||||
[key: string]: (node: any) => VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue