-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(UniverIcon): add UniverIcon component (#5557)
* doc: 增加 UniverIcon 组件 * doc: 更新本地化资源文件 * chore: 增加 UniverIcon 依赖包 * doc: 增加 UniverIcon 菜单 * doc: 增加菜单多语言支持 * chore: 更新包 * refactor: 微调样式 * refactor: 增加 IconLayout 母版页 * doc: 更新样式表路径 * test: 更新单元测试
- Loading branch information
Showing
12 changed files
with
543 additions
and
0 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
4 changes: 4 additions & 0 deletions
4
src/BootstrapBlazor.Server/Components/Layout/IconLayout.razor
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,4 @@ | ||
@inherits LayoutComponentBase | ||
@layout MainLayout | ||
|
||
@Body |
14 changes: 14 additions & 0 deletions
14
src/BootstrapBlazor.Server/Components/Layout/IconLayout.razor.cs
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,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
// See the LICENSE file in the project root for more information. | ||
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone | ||
|
||
namespace BootstrapBlazor.Server.Components.Layout; | ||
|
||
/// <summary> | ||
/// Icon Layout Component | ||
/// </summary> | ||
public partial class IconLayout | ||
{ | ||
|
||
} |
434 changes: 434 additions & 0 deletions
434
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor
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,27 @@ | ||
@page "/univer-icon" | ||
@layout MainLayout | ||
@inject IStringLocalizer<UniverIcons> Localizer | ||
|
||
<h3>@Localizer["UniverIconTitle"]</h3> | ||
|
||
<h4>@Localizer["UniverIconDescription"]</h4> | ||
|
||
<PackageTips Name="BootstrapBlazor.UniverIcon" /> | ||
|
||
<Tips class="mt-3"> | ||
<ul class="ul-demo"> | ||
<li>@Localizer["P1"]</li> | ||
<li>@Localizer["P2"]</li> | ||
</ul> | ||
<div>@Localizer["P3"]</div> | ||
</Tips> | ||
|
||
<Pre><link href="_content/BootstrapBlazor.UniverIcon/BootstrapBlazor.UniverIcon.bundle.scp.css" rel="stylesheet"></Pre> | ||
|
||
<Pre><UniverIcon Name="create-copy-single"></UniverIcon></Pre> | ||
|
||
<div>@((MarkupString)Localizer["Icons"].Value)</div> | ||
|
||
<div class="icon-list"> | ||
<UniverIconList></UniverIconList> | ||
</div> |
14 changes: 14 additions & 0 deletions
14
src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor.cs
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,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
// See the LICENSE file in the project root for more information. | ||
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone | ||
|
||
namespace BootstrapBlazor.Server.Components.Samples.Icons; | ||
|
||
/// <summary> | ||
/// OctIcons 图标示例 | ||
/// </summary> | ||
public partial class UniverIcons | ||
{ | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
src/BootstrapBlazor.Server/Components/Samples/Icons/_Imports.razor
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 @@ | ||
@layout IconLayout |
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