Skip to content

Commit c3833e8

Browse files
committed
Merge branch 'main' into feat-link
2 parents ec5ba6b + e618bf9 commit c3833e8

File tree

5 files changed

+31
-34
lines changed

5 files changed

+31
-34
lines changed

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>9.9.2-beta03</Version>
4+
<Version>9.9.2-beta05</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/EditorForm/EditorForm.razor

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,43 @@
22
@typeparam TModel
33
@inherits BootstrapComponentBase
44

5-
<div class="@ClassString">
5+
<div @attributes="AdditionalAttributes" class="@ClassString">
66
<CascadingValue Value="@_editorItems" IsFixed="false">
77
@FieldItems?.Invoke(Model)
88
</CascadingValue>
99
<CascadingValue Value="this" Name="EditorForm">
10-
@if (ShowUnsetGroupItemsOnTop)
11-
{
12-
if (UnsetGroupItems.Any())
10+
<div class="form-body">
11+
@if (ShowUnsetGroupItemsOnTop)
1312
{
14-
@RenderUnsetGroupItems
13+
if (UnsetGroupItems.Any())
14+
{
15+
@RenderUnsetGroupItems
16+
}
17+
@foreach (var g in GroupItems)
18+
{
19+
@RenderGroupItems(g)
20+
}
1521
}
16-
@foreach (var g in GroupItems)
22+
else
1723
{
18-
@RenderGroupItems(g)
24+
@foreach (var g in GroupItems)
25+
{
26+
@RenderGroupItems(g)
27+
}
28+
if (UnsetGroupItems.Any())
29+
{
30+
@RenderUnsetGroupItems
31+
}
1932
}
20-
}
21-
else
33+
</div>
34+
35+
@if (Buttons != null)
2236
{
23-
@foreach (var g in GroupItems)
24-
{
25-
@RenderGroupItems(g)
26-
}
27-
if (UnsetGroupItems.Any())
28-
{
29-
@RenderUnsetGroupItems
30-
}
37+
<div class="bb-editor-footer form-footer">
38+
@Buttons
39+
</div>
3140
}
3241
</CascadingValue>
33-
34-
@if (Buttons != null)
35-
{
36-
<div class="bb-editor-footer form-footer">
37-
@Buttons
38-
</div>
39-
}
4042
</div>
4143

4244
@code

src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ namespace BootstrapBlazor.Components;
1111
/// <summary>
1212
/// 编辑表单基类
1313
/// </summary>
14-
#if NET6_0_OR_GREATER
1514
[CascadingTypeParameter(nameof(TModel))]
16-
#endif
1715
public partial class EditorForm<TModel> : IShowLabel
1816
{
19-
private string? ClassString => CssBuilder.Default("bb-editor form-body")
17+
private string? ClassString => CssBuilder.Default("bb-editor")
2018
.AddClassFromAttributes(AdditionalAttributes)
2119
.Build();
2220

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bb-editor {
1+
.bb-editor {
22
position: relative;
33

44
.ef-loading {
@@ -9,8 +9,4 @@
99
bottom: 0;
1010
background-color: var(--bs-body-bg);
1111
}
12-
13-
.bb-editor-footer {
14-
margin-block-start: 1rem;
15-
}
1612
}

src/BootstrapBlazor/Components/Table/Table.razor.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,12 @@ form .table .table-cell > textarea {
921921
overflow-y: auto;
922922
overflow-x: hidden;
923923
padding: 1rem;
924+
max-height: calc(100vh - 133px);
924925
}
925926

926927
.modal-dialog-table.modal-dialog-scrollable .modal-body .form-footer {
927928
margin: 0;
928-
padding: 1rem;
929+
padding: 0.5rem 1rem;
929930
}
930931

931932
.table-wrap thead th .table-cell .table-text {

0 commit comments

Comments
 (0)