File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/BootstrapBlazor/Components/Table Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1065,7 +1065,7 @@ private async Task OnTableRenderAsync(bool firstRender)
10651065 await InvokeVoidAsync ( "init" , Id , Interop , new
10661066 {
10671067 DragColumnCallback = nameof ( DragColumnCallback ) ,
1068- AutoFitColumnWidthCallback = OnAutoFitColumnWidthCallback == null ? null : nameof ( AutoFitContentCallback ) ,
1068+ AutoFitColumnWidthCallback = OnAutoFitColumnWidthCallback == null ? null : nameof ( AutoFitColumnWidthCallback ) ,
10691069 ResizeColumnCallback = OnResizeColumnAsync != null ? nameof ( ResizeColumnCallback ) : null ,
10701070 ColumnMinWidth = ColumnMinWidth ?? Options . CurrentValue . TableSettings . ColumnMinWidth ,
10711071 ScrollWidth = ActualScrollWidth ,
@@ -1659,7 +1659,7 @@ public async Task ResizeColumnCallback(int index, float width)
16591659 /// <param name="calcWidth">当前列宽</param>
16601660 /// <returns></returns>
16611661 [ JSInvokable ]
1662- public async Task < float > AutoFitContentCallback ( string fieldName , float calcWidth )
1662+ public async Task < float > AutoFitColumnWidthCallback ( string fieldName , float calcWidth )
16631663 {
16641664 float ret = 0 ;
16651665 if ( OnAutoFitColumnWidthCallback != null )
Original file line number Diff line number Diff line change @@ -8371,7 +8371,7 @@ public void ShowRowCheckboxCallback_Ok()
83718371 }
83728372
83738373 [ Fact ]
8374- public async Task AutoFitContentCallback_Ok ( )
8374+ public async Task OnAutoFitColumnWidthCallback_Ok ( )
83758375 {
83768376 var name = "" ;
83778377 var localizer = Context . Services . GetRequiredService < IStringLocalizer < Foo > > ( ) ;
@@ -8406,7 +8406,7 @@ public async Task AutoFitContentCallback_Ok()
84068406
84078407 var table = cut . FindComponent < Table < Foo > > ( ) ;
84088408 float v = 0f ;
8409- await cut . InvokeAsync ( async ( ) => v = await table . Instance . AutoFitContentCallback ( "DateTime" , 90 ) ) ;
8409+ await cut . InvokeAsync ( async ( ) => v = await table . Instance . AutoFitColumnWidthCallback ( "DateTime" , 90 ) ) ;
84108410 Assert . Equal ( 100.65f , v ) ;
84118411 }
84128412
You can’t perform that action at this time.
0 commit comments