File tree Expand file tree Collapse file tree 4 files changed +23
-26
lines changed Expand file tree Collapse file tree 4 files changed +23
-26
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-beta04 </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 =" bb-editor " >
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 ())
13- {
14- @RenderUnsetGroupItems
15- }
16- @foreach ( var g in GroupItems )
10+ <div class =" form-body" >
11+ @if (ShowUnsetGroupItemsOnTop )
1712 {
18- @RenderGroupItems(g )
19- }
20- }
21- else
22- {
23- @foreach ( var g in GroupItems )
24- {
25- @RenderGroupItems(g)
13+ if ( UnsetGroupItems . Any () )
14+ {
15+ @RenderUnsetGroupItems
16+ }
17+ @foreach ( var g in GroupItems )
18+ {
19+ @RenderGroupItems(g)
20+ }
2621 }
27- if ( UnsetGroupItems . Any ())
22+ else
2823 {
29- @RenderUnsetGroupItems
24+ @foreach ( var g in GroupItems )
25+ {
26+ @RenderGroupItems(g)
27+ }
28+ if (UnsetGroupItems .Any ())
29+ {
30+ @RenderUnsetGroupItems
31+ }
3032 }
31- }
33+ </ div >
3234 </CascadingValue >
3335
3436 @if (Buttons != null )
Original file line number Diff line number Diff line change @@ -11,15 +11,9 @@ 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" )
20- . AddClassFromAttributes ( AdditionalAttributes )
21- . Build ( ) ;
22-
2317 /// <summary>
2418 /// 支持每行多少个控件功能
2519 /// </summary>
Original file line number Diff line number Diff line change @@ -921,6 +921,7 @@ 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 {
You can’t perform that action at this time.
0 commit comments