Skip to content

Commit e618bf9

Browse files
authored
feat(EditForm): update footer style (#6579)
* refactor: 增加原生标签支持 * style: 精简样式 * style: 统一间隙 * chore: bump version 9.9.2-beta05
1 parent 53b67c3 commit e618bf9

File tree

5 files changed

+15
-15
lines changed

5 files changed

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

77
<ItemGroup>

src/BootstrapBlazor/Components/EditorForm/EditorForm.razor

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@typeparam TModel
33
@inherits BootstrapComponentBase
44

5-
<div @attributes="AdditionalAttributes" class="bb-editor">
5+
<div @attributes="AdditionalAttributes" class="@ClassString">
66
<CascadingValue Value="@_editorItems" IsFixed="false">
77
@FieldItems?.Invoke(Model)
88
</CascadingValue>
@@ -31,14 +31,14 @@
3131
}
3232
}
3333
</div>
34-
</CascadingValue>
3534

36-
@if (Buttons != null)
37-
{
38-
<div class="bb-editor-footer form-footer">
39-
@Buttons
40-
</div>
41-
}
35+
@if (Buttons != null)
36+
{
37+
<div class="bb-editor-footer form-footer">
38+
@Buttons
39+
</div>
40+
}
41+
</CascadingValue>
4242
</div>
4343

4444
@code

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ namespace BootstrapBlazor.Components;
1414
[CascadingTypeParameter(nameof(TModel))]
1515
public partial class EditorForm<TModel> : IShowLabel
1616
{
17+
private string? ClassString => CssBuilder.Default("bb-editor")
18+
.AddClassFromAttributes(AdditionalAttributes)
19+
.Build();
20+
1721
/// <summary>
1822
/// 支持每行多少个控件功能
1923
/// </summary>
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ form .table .table-cell > textarea {
926926

927927
.modal-dialog-table.modal-dialog-scrollable .modal-body .form-footer {
928928
margin: 0;
929-
padding: 1rem;
929+
padding: 0.5rem 1rem;
930930
}
931931

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

0 commit comments

Comments
 (0)