mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Fix to only set nodes prop when nodesFlat is provided
This commit is contained in:
parent
87102776ab
commit
c41a776405
4 changed files with 25 additions and 4 deletions
8
types/TreeView/TreeView.svelte.d.ts
vendored
8
types/TreeView/TreeView.svelte.d.ts
vendored
|
@ -15,11 +15,17 @@ type $RestProps = SvelteHTMLElements["ul"];
|
|||
|
||||
type $Props = {
|
||||
/**
|
||||
* Provide an array of nodes to render
|
||||
* Provide a nested array of nodes to render
|
||||
* @default []
|
||||
*/
|
||||
nodes?: Array<TreeNode>;
|
||||
|
||||
/**
|
||||
* Provide a flat array of nodes to render
|
||||
* @default []
|
||||
*/
|
||||
nodesFlat?: Array<TreeNode>[];
|
||||
|
||||
/**
|
||||
* Set the current active node id
|
||||
* Only one node can be active
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue