@@ -29,6 +29,11 @@ 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+
3237 /// <summary>
3338 /// OnInitialized 方法
3439 /// </summary>
@@ -37,6 +42,18 @@ protected override void OnInitialized()
3742 base . OnInitialized ( ) ;
3843
3944 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 ) ;
4057 }
4158
4259 private async Task < List < SelectedItem > > OnGetAddressItemsAsync ( )
0 commit comments