mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00
Fix tree node collection type
This commit is contained in:
parent
8261b25e5c
commit
a977fdadff
@ -25,16 +25,13 @@ namespace Spectre.Console
|
||||
/// <summary>
|
||||
/// Gets the tree's child nodes.
|
||||
/// </summary>
|
||||
public List<Tree> Nodes { get; } = new List<Tree>();
|
||||
public List<TreeNode> Nodes => _root.Nodes;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether or not the tree is expanded or not.
|
||||
/// </summary>
|
||||
public bool Expanded { get; set; } = true;
|
||||
|
||||
/// <inheritdoc/>
|
||||
List<TreeNode> IHasTreeNodes.Nodes => _root.Nodes;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Tree"/> class.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user