File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
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-beta04 </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 @attributes =" AdditionalAttributes" class =" bb-editor " >
5+ <div @attributes =" AdditionalAttributes" class =" @ClassString " >
66 <CascadingValue Value =" @_editorItems" IsFixed =" false" >
77 @FieldItems ?.Invoke(Model)
88 </CascadingValue >
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
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ namespace BootstrapBlazor.Components;
1414[ CascadingTypeParameter ( nameof ( TModel ) ) ]
1515public 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>
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 @@ -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.5 rem 1rem ;
930930}
931931
932932.table-wrap thead th .table-cell .table-text {
You can’t perform that action at this time.
0 commit comments