Update dynamic slot typing
parent
e2747c5ae8
commit
98f0eb4a7f
|
@ -102,7 +102,7 @@ export interface OrganizationChartSlots {
|
||||||
* Dynamic content template.
|
* Dynamic content template.
|
||||||
* @todo
|
* @todo
|
||||||
*/
|
*/
|
||||||
// [key: string](node: any): VNode[];
|
[key: string]: (node: any) => VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* @module tree
|
* @module tree
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
import { VNode } from 'vue';
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -167,12 +168,12 @@ export interface TreeSlots {
|
||||||
* Optional slots.
|
* Optional slots.
|
||||||
* @todo
|
* @todo
|
||||||
*/
|
*/
|
||||||
// [key: string](scope: {
|
[key: string]: (scope: {
|
||||||
/**
|
/**
|
||||||
* Tree node instance
|
* Tree node instance
|
||||||
*/
|
*/
|
||||||
// node: TreeNode;
|
node: TreeNode;
|
||||||
// }):VNode[];
|
}) => VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue