File tree Expand file tree Collapse file tree 5 files changed +31
-34
lines changed Expand file tree Collapse file tree 5 files changed +31
-34
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
1715public 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
Original file line number Diff line number Diff line change 1- .bb-editor {
1+ .bb-editor {
22 position : relative ;
33
44 .ef-loading {
99 bottom : 0 ;
1010 background-color : var (--bs-body-bg );
1111 }
12-
13- .bb-editor-footer {
14- margin-block-start : 1rem ;
15- }
1612}
Original file line number Diff line number Diff 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.5 rem 1rem ;
929930}
930931
931932.table-wrap thead th .table-cell .table-text {
You can’t perform that action at this time.
0 commit comments