mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(treeview)!: rename children
prop to nodes
for Svelte 5 compatibility
This commit is contained in:
parent
d655296fcf
commit
82905ac696
6 changed files with 56 additions and 56 deletions
6
types/TreeView/TreeView.svelte.d.ts
vendored
6
types/TreeView/TreeView.svelte.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue