File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/BootstrapBlazor/Components/Table Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1176,19 +1176,19 @@ private async Task ProcessFirstRender()
11761176 }
11771177
11781178 await ReloadColumnOrdersFromBrowserAsync ( cols ) ;
1179- Columns . Clear ( ) ;
1180- Columns . AddRange ( cols . OrderFunc ( ) ) ;
11811179
11821180 // 查看是否开启列宽序列化
1183- await ReloadColumnWidthFromBrowserAsync ( ) ;
1184- ResetColumnWidth ( ) ;
1181+ await ReloadColumnWidthFromBrowserAsync ( cols ) ;
11851182
11861183 if ( OnColumnCreating != null )
11871184 {
1188- await OnColumnCreating ( Columns ) ;
1185+ await OnColumnCreating ( cols ) ;
11891186 }
11901187
1191- InternalResetVisibleColumns ( ) ;
1188+ InternalResetVisibleColumns ( cols ) ;
1189+
1190+ Columns . Clear ( ) ;
1191+ Columns . AddRange ( cols . OrderFunc ( ) ) ;
11921192
11931193 // set default sortName
11941194 var col = Columns . Find ( i => i is { Sortable : true , DefaultSort : true } ) ;
You can’t perform that action at this time.
0 commit comments