Skip to content

Commit f268da5

Browse files
committed
refactor: 移除 IsReset 参数
1 parent 0517990 commit f268da5

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

src/BootstrapBlazor/Components/Select/SelectTree.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<span class="@AppendClassName"><i class="@DropdownIcon"></i></span>
2121
</div>
2222
<div class="dropdown-menu">
23-
<TreeView TItem="TValue" Items="@Items" IsReset="IsReset" ShowIcon="ShowIcon" OnTreeItemClick="OnItemClick" ModelEqualityComparer="@ModelEqualityComparer" CustomKeyAttribute="@CustomKeyAttribute" OnExpandNodeAsync="@OnExpandNodeAsync" />
23+
<TreeView TItem="TValue" Items="@Items" ShowIcon="ShowIcon" OnTreeItemClick="OnItemClick" ModelEqualityComparer="@ModelEqualityComparer" CustomKeyAttribute="@CustomKeyAttribute" OnExpandNodeAsync="@OnExpandNodeAsync" />
2424
</div>
2525
@if (!IsPopover)
2626
{

src/BootstrapBlazor/Components/Select/SelectTree.razor.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ public partial class SelectTree<TValue> : IModelEqualityComparer<TValue>
120120
[Parameter]
121121
public bool IsEditable { get; set; }
122122

123-
/// <summary>
124-
/// 获得/设置 页面刷新是否重置已加载数据 默认 false
125-
/// </summary>
126-
[Parameter]
127-
public bool IsReset { get; set; }
128-
129123
[Inject]
130124
[NotNull]
131125
private IStringLocalizer<SelectTree<TValue>>? Localizer { get; set; }

src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
153153
[Parameter]
154154
public Func<string?, Task<List<TreeViewItem<TItem>>?>>? OnSearchAsync { get; set; }
155155

156-
/// <summary>
157-
/// 获得/设置 页面刷新是否重置已加载数据 默认 false
158-
/// </summary>
159-
[Parameter]
160-
public bool IsReset { get; set; }
161-
162156
/// <summary>
163157
/// 获得/设置 带层次数据集合
164158
/// </summary>

0 commit comments

Comments
 (0)