feat(treeview)!: rename children prop to nodes for Svelte 5 compatibility

This commit is contained in:
Eric Liu 2024-10-20 14:28:52 -07:00
commit 82905ac696
6 changed files with 56 additions and 56 deletions

View file

@ -8,17 +8,17 @@ export interface TreeNode {
text: any;
icon?: typeof import("svelte").SvelteComponent<any>;
disabled?: boolean;
children?: TreeNode[];
nodes?: TreeNode[];
}
type $RestProps = SvelteHTMLElements["ul"];
type $Props = {
/**
* Provide an array of children nodes to render
* Provide an array of nodes to render
* @default []
*/
children?: Array<TreeNode>;
nodes?: Array<TreeNode>;
/**
* Set the current active node id