Repository: dotnetcore/BootstrapBlazor (2026-06-13T00:12:13Z)

Issue:
feat(Table): 新版表格启用AllowResizing="true"后.列宽异常
### Is there an existing issue for this?

- [ ] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

[table启用AllowResizing后问题.zip](https://github.com/user-attachments/files/28707942/table.AllowResizing.zip)

<img width="1661" height="804" alt="Image" src="https://github.com/user-attachments/assets/c9cbc3ac-ebc6-4bf5-802c-cba800ab2e79" />
图片箭头所指,下面的表格里列宽不像上面表格.变成了等宽?这样很多内容都看不完整了.

### Describe the solution you'd like

希望开启AllowResizing,表格初始列宽和未开启时一样.

### Additional context

_No response_


Discussion:
@NewWebFish Thank you for contacting us. We will give feedback later.
首先，确定你是否开启了表格持久化，如果有开启了表格持久化，就需要重置表格持久化信息，请参考文档https://www.blazor.zone/table/column/drag
@NewWebFish 明天修复，已经通过测试了



Patch:
diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj
index 7614800c8cc..ae7fefb6236 100644
--- a/src/BootstrapBlazor/BootstrapBlazor.csproj
+++ b/src/BootstrapBlazor/BootstrapBlazor.csproj
@@ -1,7 +1,7 @@
 ﻿<Project Sdk="Microsoft.NET.Sdk.Razor">
 
   <PropertyGroup>
-    <Version>10.7.2-beta02</Version>
+    <Version>10.7.2-beta03</Version>
   </PropertyGroup>
 
   <ItemGroup>
diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.cs b/src/BootstrapBlazor/Components/Table/Table.razor.cs
index 8b71d314d81..78d122b468e 100644
--- a/src/BootstrapBlazor/Components/Table/Table.razor.cs
+++ b/src/BootstrapBlazor/Components/Table/Table.razor.cs
@@ -90,7 +90,7 @@ public partial class Table<TItem> : ITable, IModelEqualityComparer<TItem> where
         .AddClass("table-excel", IsExcel)
         .AddClass("table-bordered", IsBordered)
         .AddClass("table-striped table-hover", IsStriped)
-        .AddClass("table-layout-fixed", IsFixedHeader || AllowResizing)
+        .AddClass("table-layout-fixed", IsFixedHeader)
         .AddClass("table-draggable", AllowDragColumn)
         .Build();
 


Test patch:
diff --git a/test/UnitTest/Components/TableTest.cs b/test/UnitTest/Components/TableTest.cs
index 3f48b29f279..a0527e73ec9 100644
--- a/test/UnitTest/Components/TableTest.cs
+++ b/test/UnitTest/Components/TableTest.cs
@@ -1609,6 +1609,7 @@ public void IsFixedHeader_Ok()
         });
         cut.Contains("table-fixed-header");
         cut.Contains("height: 200px;");
+        cut.Contains("table-layout-fixed");
     }
 
     [Theory]
@@ -1745,6 +1746,9 @@ public void AllowResizing_Ok(bool resizing)
         {
             cut.DoesNotContain("is-resizable");
         }
+
+        // 开启列宽调整时仍使用 auto 布局保持初始列宽与未开启时一致
+        cut.DoesNotContain("table-layout-fixed");
     }
 
     [Theory]