Refactor #3832 Refactor #3833 - For Tree

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-07 09:49:49 +03:00
parent 7a5860f97b
commit 20726d35e1
4 changed files with 79 additions and 20 deletions

View file

@ -168,15 +168,45 @@ export interface TreeProps {
*/
export interface TreeSlots {
/**
* Optional slots.
* @todo
* Custom loading icon template.
*/
[key: string]: (scope: {
loadingicon(): VNode[];
/**
* Custom search icon template.
*/
searchicon(): VNode[];
/**
* Custom toggler icon template.
*/
togglericon(scope: {
/**
* Tree node instance
*/
node: TreeNode;
}) => VNode[];
/**
* Expanded state of the node
*/
expanded: boolean;
}): VNode[];
/**
* Custom checkbox icon
*/
checkboxicon(scope: {
/**
* Check state of the node
*/
checked: boolean;
/**
* Partial check state of the node
*/
partialChecked: boolean;
}): VNode[];
/**
* Optional slots.
* @todo
*/
[key: string]: (node: any) => VNode[];
}
/**