File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
src/BootstrapBlazor/Components/Filters Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ public class FilterKeyValueAction
3737 /// <summary>
3838 /// 获得/设置 子过滤条件集合
3939 /// </summary>
40- public List < FilterKeyValueAction > ? Filters { get ; set ; }
40+ public List < FilterKeyValueAction > Filters { get ; set ; } = [ ] ;
4141}
Original file line number Diff line number Diff line change 1515 @if (Count > 0 )
1616 {
1717 <FilterLogicItem @bind-Logic =" Logic" ></FilterLogicItem >
18- <Select Items =" @Items" @bind-Value =" @_value2" ShowLabel =" false" SkipValidate =" true" ></Select >
18+ <Select Items =" @Items" @bind-Value =" @_action2" ShowLabel =" false" SkipValidate =" true" ></Select >
19+ <BootstrapInput @bind-Value =" @_value2" ShowLabel =" false" SkipValidate =" true" ></BootstrapInput >
1920 }
2021}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public override void Reset()
7171 /// <returns></returns>
7272 public override FilterKeyValueAction GetFilterConditions ( )
7373 {
74- var filter = new FilterKeyValueAction { Filters = [ ] } ;
74+ var filter = new FilterKeyValueAction ( ) ;
7575 if ( ! string . IsNullOrEmpty ( _value1 ) )
7676 {
7777 filter . Filters . Add ( new FilterKeyValueAction
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public async Task OnFilterAsync()
130130 }
131131
132132 var action = FilterAction . GetFilterConditions ( ) ;
133- if ( action . Filters != null && action . Filters . Count > 0 )
133+ if ( action . Filters . Count > 0 )
134134 {
135135 Table . Filters [ _fieldKey ] = FilterAction ;
136136 }
You can’t perform that action at this time.
0 commit comments