mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Update dynamic slot typing
This commit is contained in:
parent
e2747c5ae8
commit
98f0eb4a7f
2 changed files with 8 additions and 7 deletions
13
components/tree/Tree.d.ts
vendored
13
components/tree/Tree.d.ts
vendored
|
@ -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…
Add table
Add a link
Reference in a new issue