@@ -29,11 +29,6 @@ public partial class TablesFilter
2929 [ NotNull ]
3030 private Table < Foo > ? TableSetFilter { get ; set ; }
3131
32- private readonly Dictionary < string , object > _multiFilterParameter1 = new ( ) ;
33- private readonly Dictionary < string , object > _multiFilterParameter2 = new ( ) ;
34- private readonly Dictionary < string , object > _multiFilterParameter3 = new ( ) ;
35- private readonly Dictionary < string , object > _multiFilterParameter4 = new ( ) ;
36-
3732 /// <summary>
3833 /// OnInitialized 方法
3934 /// </summary>
@@ -42,18 +37,6 @@ protected override void OnInitialized()
4237 base . OnInitialized ( ) ;
4338
4439 Items = Foo . GenerateFoo ( FooLocalizer ) ;
45- var items1 = Items . Select ( i => new SelectedItem ( i . Name ! , i . Name ! ) ) . DistinctBy ( i => i . Value ) ;
46- _multiFilterParameter1 . Add ( nameof ( MultiFilter . Items ) , items1 ) ;
47-
48- _multiFilterParameter2 . Add ( nameof ( MultiFilter . OnGetItemsAsync ) , new Func < Task < List < SelectedItem > > > ( OnGetAddressItemsAsync ) ) ;
49-
50- var items3 = Items . Select ( i => new SelectedItem ( i . Complete . ToString ( ) , i . Complete . ToString ( ) ) ) . DistinctBy ( i => i . Value ) ;
51- _multiFilterParameter3 . Add ( nameof ( MultiFilter . Items ) , items3 ) ;
52- _multiFilterParameter3 . Add ( nameof ( MultiFilter . ShowSearch ) , false ) ;
53-
54- var items4 = Items . Select ( i => new SelectedItem ( i . Education . ToString ( ) ! , i . Education . ToString ( ) ! ) ) . DistinctBy ( i => i . Value ) ;
55- _multiFilterParameter4 . Add ( nameof ( MultiFilter . Items ) , items4 ) ;
56- _multiFilterParameter4 . Add ( nameof ( MultiFilter . ShowSearch ) , false ) ;
5740 }
5841
5942 private async Task < List < SelectedItem > > OnGetAddressItemsAsync ( )
0 commit comments