Skip to content

Commit 63b84c7

Browse files
committed
Revert "refactor: 删除不使用的代码"
This reverts commit 51cb815.
1 parent 51cb815 commit 63b84c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,16 @@ public partial class Toolbar
3030
.AddStyle("flex-wrap", "wrap", IsWrap)
3131
.AddStyleFromAttributes(AdditionalAttributes)
3232
.Build();
33+
34+
private readonly List<ComponentBase> _components = [];
35+
36+
/// <summary>
37+
/// 添加按钮到工具栏方法
38+
/// </summary>
39+
public void Add(ComponentBase component) => _components.Add(component);
40+
41+
/// <summary>
42+
/// 移除按钮到工具栏方法
43+
/// </summary>
44+
public void Remove(ComponentBase component) => _components.Remove(component);
3345
}

0 commit comments

Comments
 (0)