-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add AddTabItemBindOptions service (#647)
* feat: 增加 AddTabItemMenuBindOption 服务 * doc: 增加 ConfigureTabItemBindOptions 配置示例 * feat: 增加 TabItemMenuBindOptions 逻辑 * doc: 移除 TabItemOptionAttribute 标签 * fix: 修复地址由于 / 导致比对结果不一致问题 * test: 增加 ConfigureTabItemBindOptions 单元测试 * refactor: 重命名配置服务 * chore: bump version 7.4.2-beta04 * refactor: rename TabItemMenuBindOptions
- Loading branch information
Showing
9 changed files
with
106 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
// Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
|
||
namespace BootstrapBlazor.Components; | ||
|
||
/// <summary> | ||
/// 标签与菜单捆绑配置项 | ||
/// </summary> | ||
public class TabItemBindOptions | ||
{ | ||
/// <summary> | ||
/// 获得/设置 集合 | ||
/// </summary> | ||
public Dictionary<string, TabItemOptionAttribute> Binders { get; set; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
// Website: https://www.blazor.zone or https://argozhang.github.io/ | ||
|
||
using Microsoft.AspNetCore.Components.Rendering; | ||
|
||
namespace UnitTest.Pages; | ||
|
||
[Route("/Binder")] | ||
public class Binder : ComponentBase | ||
{ | ||
protected override void BuildRenderTree(RenderTreeBuilder builder) | ||
{ | ||
builder.AddContent(0, "Binder"); | ||
} | ||
} |