Skip to content

Commit 47268ea

Browse files
ArgoZhangzhaijunlei955XUEWUQIUSHUANG
committed
Merge branch 'test-pr' into dev-tiansfather
# Conflicts: # src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs Co-authored-by: chengKun <[email protected]> Co-authored-by: Frost Autumn <[email protected]>
2 parents 7c8c3e3 + e8c7620 commit 47268ea

File tree

92 files changed

+1008
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1008
-304
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
<PackageReference Include="BootstrapBlazor.Markdown" Version="9.0.0" />
4848
<PackageReference Include="BootstrapBlazor.MaterialDesign" Version="9.0.0" />
4949
<PackageReference Include="BootstrapBlazor.MaterialDesign.Extensions" Version="9.0.0" />
50-
<PackageReference Include="BootstrapBlazor.MeiliSearch" Version="9.0.8" />
50+
<PackageReference Include="BootstrapBlazor.MeiliSearch" Version="9.0.10" />
5151
<PackageReference Include="BootstrapBlazor.Mermaid" Version="9.0.2" />
5252
<PackageReference Include="BootstrapBlazor.MindMap" Version="9.0.0" />
5353
<PackageReference Include="BootstrapBlazor.MouseFollower" Version="9.0.1" />
54-
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="9.0.0" />
54+
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="9.0.1" />
5555
<PackageReference Include="BootstrapBlazor.PdfReader" Version="9.0.0" />
5656
<PackageReference Include="BootstrapBlazor.Player" Version="9.0.0" />
5757
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="9.0.0" />

src/BootstrapBlazor.Server/Components/Components/CultureChooser.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
.culture-selector ::deep .select {
17-
width: 210px;
17+
width: var(--bb-header-select-width);
1818
}
1919

2020
::deep .form-control {

src/BootstrapBlazor.Server/Components/Components/Header.razor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
border-radius: var(--bs-border-radius);
6464
}
6565

66+
::deep .bb-g-search {
67+
width: var(--bb-header-select-width);
68+
margin-bottom: var(--bb-header-search-margin-bottom);
69+
}
70+
6671
@media (min-width: 768px) {
6772
.navbar-header {
6873
position: sticky;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="bb-reboot-clock">
2-
<FlipClock ViewMode="FlipClockViewMode.CountDown" ShowHour="false" StartValue="TimeSpan.FromMinutes(2)"></FlipClock>
2+
<FlipClock ViewMode="FlipClockViewMode.CountDown" ShowHour="false" StartValue="TimeSpan.FromSeconds(140)"></FlipClock>
33
</div>

src/BootstrapBlazor.Server/Components/Pages/Localization.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ public class CultureController : Controller
240240
// @Localizer["N49"]
241241
options.AdditionalJsonFiles = new string[]
242242
{
243-
@@"D:\Argo\src\BootstrapBlazor\src\BootstrapBlazor.Shared\Locales\zh-TW.json",
244-
@@"D:\Argo\src\BootstrapBlazor\src\BootstrapBlazor.Shared\Locales\zh-CN.json"
243+
@@"D:\Argo\src\BootstrapBlazor\src\BootstrapBlazor.Server\Locales\zh-TW.json",
244+
@@"D:\Argo\src\BootstrapBlazor\src\BootstrapBlazor.Server\Locales\zh-CN.json"
245245
};
246246
});
247247
}

src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public sealed partial class Cascaders
1313
/// <summary>
1414
/// Foo 类为Demo测试用,如有需要请自行下载源码查阅
1515
/// Foo class is used for Demo test, please download the source code if necessary
16-
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Shared/Data/Foo.cs
16+
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Server/Data/Foo.cs
1717
/// </summary>
1818
private Foo Model { get; set; } = new Foo();
1919

src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@
120120
</ValidateForm>
121121
</DemoBlock>
122122

123+
<DemoBlock Title="@Localizer["GenericTitle"]" Introduction="@Localizer["GenericIntro"]" Name="Generic">
124+
<CheckboxListGeneric @bind-Value="@_selectedFoos" Items="@GenericItems" />
125+
<section ignore>
126+
@if (_selectedFoos != null)
127+
{
128+
foreach (var item in _selectedFoos)
129+
{
130+
<div>@item.Name</div>
131+
}
132+
}
133+
</section>
134+
</DemoBlock>
135+
123136
<AttributeTable Items="@GetAttributes()" />
124137

125138
<EventTable Items="@GetEvents()" />

src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public partial class CheckboxLists
3737
[NotNull]
3838
private IEnumerable<SelectedItem>? Items5 { get; set; }
3939

40+
[NotNull]
41+
private IEnumerable<SelectedItem<Foo>>? GenericItems { get; set; }
42+
43+
private List<Foo>? _selectedFoos;
44+
4045
/// <summary>
4146
/// OnInitialized method
4247
/// </summary>
@@ -89,6 +94,22 @@ protected override void OnInitialized()
8994
FooItems = Foo.GenerateHobbies(LocalizerFoo);
9095
}
9196

97+
/// <summary>
98+
/// <inheritdoc/>
99+
/// </summary>
100+
/// <returns></returns>
101+
protected override async Task OnInitializedAsync()
102+
{
103+
await base.OnInitializedAsync();
104+
105+
GenericItems = new List<SelectedItem<Foo>>()
106+
{
107+
new() { Text = Localizer["item1"], Value = new Foo() { Name = LocalizerFoo["Foo.Name", "001"] } },
108+
new() { Text = Localizer["item2"], Value = new Foo() { Name = LocalizerFoo["Foo.Name", "002"] } },
109+
new() { Text = Localizer["item3"], Value = new Foo() { Name = LocalizerFoo["Foo.Name", "003"] } },
110+
};
111+
}
112+
92113
[NotNull]
93114
private Foo? Model { get; set; }
94115

src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public partial class ColorPickers
1313
/// <summary>
1414
/// Foo 类为Demo测试用,如有需要请自行下载源码查阅
1515
/// Foo class is used for Demo test, please download the source code if necessary
16-
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Shared/Data/Foo.cs
16+
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Server/Data/Foo.cs
1717
/// </summary>
1818
[NotNull]
1919
private Foo? Dummy { get; set; } = new Foo() { Name = "#DDDDDD" };

src/BootstrapBlazor.Server/Components/Samples/DateTimeRanges.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected override void OnInitialized()
114114
/// <summary>
115115
/// Foo 类为Demo测试用,如有需要请自行下载源码查阅
116116
/// Foo class is used for Demo test, please download the source code if necessary
117-
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Shared/Data/Foo.cs
117+
/// https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/main/src/BootstrapBlazor.Server/Data/Foo.cs
118118
/// </summary>
119119
private class ValidateFormRangeFoo : Foo
120120
{

0 commit comments

Comments
 (0)