Skip to content

Commit b6bddb3

Browse files
Lambert LeeArgoZhang
authored andcommitted
!3754 doc(#I6AIAY): update ip demo
* update ip demo
1 parent e81099b commit b6bddb3

5 files changed

Lines changed: 13 additions & 21 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div>
2+
<IpAddress @bind-Value="@Value" />
3+
<div class="mt-3">@Value</div>
4+
</div>
5+
6+
@code {
7+
private string? Value { get; set; }
8+
}

src/BootstrapBlazor.Shared/Locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4083,7 +4083,8 @@
40834083
"Limit": "time limit"
40844084
},
40854085
"BootstrapBlazor.Shared.Samples.Ips": {
4086-
"BasicUsageTitle": "Basic usage"
4086+
"IpNormalTitle": "Basic usage",
4087+
"IpNormalIntro": "Enter and display the <code>ip</code> address in sections, for example: <code>192.168.1.1</code>"
40874088
},
40884089
"BootstrapBlazor.Shared.Samples.Displays": {
40894090
"Title": "Display",

src/BootstrapBlazor.Shared/Locales/zh.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4090,7 +4090,8 @@
40904090
"Limit": "时间范围"
40914091
},
40924092
"BootstrapBlazor.Shared.Samples.Ips": {
4093-
"BasicUsageTitle": "基础用法"
4093+
"IpNormalTitle": "基础用法",
4094+
"IpNormalIntro": "分段录入并显示 <code>ip</code> 地址,例如:<code>192.168.1.1</code>"
40944095
},
40954096
"BootstrapBlazor.Shared.Samples.Displays": {
40964097
"Title": "Display 显示组件",
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
@page "/ips"
22
@inject IStringLocalizer<Ips> Localizer
33

4-
<DemoBlock Title="@Localizer["BasicUsageTitle"]" Name="Normal">
5-
<IpAddress @bind-Value="@Value" />
6-
<div class="mt-3">@Value</div>
7-
</DemoBlock>
8-
4+
<DemoBlock Title="@Localizer["IpNormalTitle"]" Introduction="@Localizer["IpNormalIntro"]" Name="Normal" Demo="typeof(Demos.Ip.IpNormal)" />

src/BootstrapBlazor.Shared/Samples/Ips.razor.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)