File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
BootstrapBlazor.Shared/Components/Samples/Table
BootstrapBlazor/Components/SelectGeneric Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ private Task<QueryData<Foo>> OnQueryAsync(QueryPageOptions options)
148148 {
149149 // 使用内置扩展方法 ToFilter 获得过滤条件
150150 // 目前 ToFilterFunc 无法解决大小写敏感问题
151- // var items = Items.Where(options.ToFilterFunc<Foo>());
152- IEnumerable < Foo > items = Items ;
151+ var items = Items . Where ( options . ToFilterFunc < Foo > ( ) ) ;
153152 if ( ! string . IsNullOrEmpty ( options . SearchText ) )
154153 {
155154 // 使用 Linq 处理
Original file line number Diff line number Diff line change 2222 }
2323 else
2424 {
25- <input type =" text" id =" @InputId" disabled =" @Disabled" placeholder =" @PlaceHolder" class =" @InputClassString" value =" @SelectedRow? .Text" @onchange =" OnChange" readonly =" @ReadonlyString" />
25+ <input type =" text" id =" @InputId" disabled =" @Disabled" placeholder =" @PlaceHolder" class =" @InputClassString" value =" @SelectedRow.Text" @onchange =" OnChange" readonly =" @ReadonlyString" />
2626 }
2727 <span class =" @AppendClassString" ><i class =" @DropdownIcon" ></i ></span >
2828 </div >
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ private List<SelectedItem<TValue>> Rows
277277 }
278278 }
279279
280- private SelectedItem < TValue > ? SelectedRow
280+ private SelectedItem < TValue > SelectedRow
281281 {
282282 get
283283 {
@@ -286,7 +286,7 @@ private SelectedItem<TValue>? SelectedRow
286286 }
287287 }
288288
289- private SelectedItem < TValue > ? GetSelectedRow ( )
289+ private SelectedItem < TValue > GetSelectedRow ( )
290290 {
291291 var item = Rows . Find ( i => Equals ( i . Value , Value ) )
292292 ?? Rows . Find ( i => i . Active )
You can’t perform that action at this time.
0 commit comments