Skip to content

Commit 266f7ce

Browse files
committed
doc: 更新示例
1 parent e714b45 commit 266f7ce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Introduction="@Localizer["TreeViewNormalIntro"]"
2828
Name="Normal">
2929
<section ignore>@((MarkupString)Localizer["TreeViewNormalDescription"].Value)</section>
30-
<TreeView TItem="TreeFoo" Items="@Items" OnTreeItemClick="@OnTreeItemClick" />
30+
<TreeView TItem="TreeFoo" Items="@NormalItems" OnTreeItemClick="@OnTreeItemClick" />
3131
<ConsoleLogger @ref="Logger1" />
3232
</DemoBlock>
3333

src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ public sealed partial class TreeViews
2323
private ConsoleLogger? Logger3 { get; set; }
2424

2525
private bool DisableCanExpand { get; set; }
26+
2627
private bool IsDisabled { get; set; }
2728

29+
private List<TreeViewItem<TreeFoo>> NormalItems { get; } = TreeFoo.GetTreeItems();
30+
2831
private List<TreeViewItem<TreeFoo>> Items { get; } = TreeFoo.GetTreeItems();
2932

3033
private bool AutoCheckChildren { get; set; }

0 commit comments

Comments
 (0)