Skip to content

Commit 0b7fe8a

Browse files
authored
doc(Icons): update icons style sheet documentation (#4428)
* refactor: 移除 version 工具配置 * chore: 更新 warning 配置 * chore: 更新 Json 依赖配置 * chore: 移除版本工具链配置 * refactor: 移动 CS8002 警告配置 * chore: 移除平台配置 * chore: 更新 Json 高风险配置 * chore: 增加 wasm 平台支持配置 * chore: 更新 Json 版本配置 * doc: 更新图标样式使用文档 * chore: bump version 8.10.2
1 parent 5c414c1 commit 0b7fe8a

File tree

6 files changed

+55
-7
lines changed

6 files changed

+55
-7
lines changed

src/BootstrapBlazor.Server/Components/Samples/Icons/AntDesignIcons.razor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88

99
<PackageTips Name="BootstrapBlazor.AntDesignIcon" />
1010

11+
<Tips class="mt-3">
12+
<ul class="ul-demo">
13+
<li>@Localizer["P1"]</li>
14+
<li>@Localizer["P2"]</li>
15+
</ul>
16+
<div>@Localizer["P3"]</div>
17+
</Tips>
18+
19+
<Pre>&lt;link href="_content/BootstrapBlazor.AntDesignIcon/BootstrapBlazor.AntDesignIcon.bundle.scp.css" rel="stylesheet"&gt;</Pre>
20+
1121
<Pre>&lt;AntDesignIcon Category="AntDesignIconCategory.Outlined" Name="account-book"&gt;&lt;AntDesignIcon&gt;</Pre>
1222

1323
<AntDesignIconList CopiedTooltipText="@Localizer["CopiedTooltipText"]" />

src/BootstrapBlazor.Server/Components/Samples/Icons/ElementIcons.razor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88

99
<PackageTips Name="BootstrapBlazor.ElementIcon" />
1010

11+
<Tips class="mt-3">
12+
<ul class="ul-demo">
13+
<li>@Localizer["P1"]</li>
14+
<li>@Localizer["P2"]</li>
15+
</ul>
16+
<div>@Localizer["P3"]</div>
17+
</Tips>
18+
19+
<Pre>&lt;link href="_content/BootstrapBlazor.ElementIcon/BootstrapBlazor.ElementIcon.bundle.scp.css" rel="stylesheet"&gt;</Pre>
20+
1121
<Pre>&lt;ElementIcon Name="add-location"&gt;&lt;ElementIcon&gt;</Pre>
1222

1323
<ElementIconList CopiedTooltipText="@Localizer["CopiedTooltipText"]" />

src/BootstrapBlazor.Server/Components/Samples/Icons/IconParks.razor

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88

99
<PackageTips Name="BootstrapBlazor.IconPark" />
1010

11+
<Tips class="mt-3">
12+
<ul class="ul-demo">
13+
<li>@Localizer["P1"]</li>
14+
<li>@Localizer["P2"]</li>
15+
</ul>
16+
<div>@Localizer["P3"]</div>
17+
</Tips>
18+
19+
<Pre>&lt;link href="_content/BootstrapBlazor.IconPark/BootstrapBlazor.IconPark.bundle.scp.css" rel="stylesheet"&gt;</Pre>
20+
1121
<Pre>&lt;ByteDanceIcon Name="abdominal"&gt;&lt;ByteDanceIcon&gt;</Pre>
1222

1323
<IconParkList CopiedTooltipText="@Localizer["CopiedTooltipText"]" />

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6657,7 +6657,10 @@
66576657
"BootstrapBlazor.Server.Components.Samples.Icons.ElementIcons": {
66586658
"ElementIconTitle": "Element-plus Icons",
66596659
"ElementIconDescription": "Free, high quality, open source icon library",
6660-
"CopiedTooltipText": "Copied"
6660+
"CopiedTooltipText": "Copied",
6661+
"P1": "1. After referencing the extension package, add the package built-in style file to open the icon",
6662+
"P2": "2. Enable css isolation and automatically reference component styles after compilation",
6663+
"P3": "Please copy the following code segement"
66616664
},
66626665
"BootstrapBlazor.Server.Components.Samples.Icons.FAIcons": {
66636666
"Title": "Font Awesome Icons",
@@ -6678,12 +6681,18 @@
66786681
"BootstrapBlazor.Server.Components.Samples.Icons.IconParks": {
66796682
"IconParkTitle": "ByteDance Svg Icon Lib",
66806683
"IconParkDescription": "It has covered all platforms of ByteDance commercial product series and has been introduced and used by 12 platforms as the underlying code, ensuring the uniformity of icon style and cognition.",
6681-
"CopiedTooltipText": "Copied"
6684+
"CopiedTooltipText": "Copied",
6685+
"P1": "1. After referencing the extension package, add the package built-in style file to open the icon",
6686+
"P2": "2. Enable css isolation and automatically reference component styles after compilation",
6687+
"P3": "Please copy the following code segement"
66826688
},
66836689
"BootstrapBlazor.Server.Components.Samples.Icons.AntDesignIcons": {
66846690
"AntDesignIconTitle": "AntDesign Svg Icon Lib",
66856691
"AntDesignIconDescription": "Semantic vector graphics.",
6686-
"CopiedTooltipText": "Copied"
6692+
"CopiedTooltipText": "Copied",
6693+
"P1": "1. After referencing the extension package, add the package built-in style file to open the icon",
6694+
"P2": "2. Enable css isolation and automatically reference component styles after compilation",
6695+
"P3": "Please copy the following code segement"
66876696
},
66886697
"BootstrapBlazor.Server.Components.Samples.BootstrapBlazorIcons": {
66896698
"IconsTitle": "Icon",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6657,7 +6657,10 @@
66576657
"BootstrapBlazor.Server.Components.Samples.Icons.ElementIcons": {
66586658
"ElementIconTitle": "饿了么图标库",
66596659
"ElementIconDescription": "饿了么免费开源图标库",
6660-
"CopiedTooltipText": "拷贝成功"
6660+
"CopiedTooltipText": "拷贝成功",
6661+
"P1": "1. 引用扩展组件包后添加包内置样式文件开启图标",
6662+
"P2": "2. 开启样式隔离,编译后自动引用组件样式",
6663+
"P3": "请拷贝下方样式即可"
66616664
},
66626665
"BootstrapBlazor.Server.Components.Samples.Icons.FAIcons": {
66636666
"Title": "Font Awesome Icons",
@@ -6678,12 +6681,18 @@
66786681
"BootstrapBlazor.Server.Components.Samples.Icons.IconParks": {
66796682
"IconParkTitle": "字节跳动图标库",
66806683
"IconParkDescription": "已覆盖字节跳动商业化产品系所有平台,并被12个平台作为底层代码引入使用,保证了图标样式与认知的统一性",
6681-
"CopiedTooltipText": "拷贝成功"
6684+
"CopiedTooltipText": "拷贝成功",
6685+
"P1": "1. 引用扩展组件包后添加包内置样式文件开启图标",
6686+
"P2": "2. 开启样式隔离,编译后自动引用组件样式",
6687+
"P3": "请拷贝下方样式即可"
66826688
},
66836689
"BootstrapBlazor.Server.Components.Samples.Icons.AntDesignIcons": {
66846690
"AntDesignIconTitle": "蚂蚁图标库",
66856691
"AntDesignIconDescription": "语义化的矢量图形",
6686-
"CopiedTooltipText": "拷贝成功"
6692+
"CopiedTooltipText": "拷贝成功",
6693+
"P1": "1. 引用扩展组件包后添加包内置样式文件开启图标",
6694+
"P2": "2. 开启样式隔离,编译后自动引用组件样式",
6695+
"P3": "请拷贝下方样式即可"
66876696
},
66886697
"BootstrapBlazor.Server.Components.Samples.BootstrapBlazorIcons": {
66896698
"IconsTitle": "Icon 图标",

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>8.10.2-beta05</Version>
4+
<Version>8.10.2</Version>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">

0 commit comments

Comments
 (0)