Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
72ffffa
Table组件能否新增动态设置固定列的功能
Tony-ST0754 Jun 12, 2026
74435e6
清除空行,增加缓存列可能为判断
Tony-ST0754 Jun 12, 2026
d2b7775
refactor: 补充动态固定列时,没有列宽给默认列宽
Tony-ST0754 Jun 12, 2026
02a3fac
补充单元测试
Tony-ST0754 Jun 12, 2026
3398898
清除多余空行
Tony-ST0754 Jun 12, 2026
0958204
补充固定列持久化回来时style上的值不正确
Tony-ST0754 Jul 7, 2026
2dd7992
doc(Localization): add SearchFormLocalizerOptions localization (#8112)
ArgoZhang Jun 12, 2026
b0997d6
fix(Table): use auto table layout when AllowResizing is enabled (#8113)
ArgoZhang Jun 13, 2026
781102a
feat(Utility): improve addLink method (#8116)
ArgoZhang Jun 14, 2026
d651f63
feat(Utility): improve addLink method (#8118)
ArgoZhang Jun 15, 2026
ee73d09
feat(DockView): bump version 10.0.15 (#8120)
ArgoZhang Jun 15, 2026
5ed381e
feat(DockView): bump version 10.0.16 (#8122)
ArgoZhang Jun 16, 2026
892e070
feat(Html2Pdf): bump version 10.0.9 (#8124)
ArgoZhang Jun 16, 2026
f172166
feat(Table): add auto width function (#8126)
ArgoZhang Jun 16, 2026
db8e375
feat(DockView): bump version 10.0.17 (#8128)
ArgoZhang Jun 17, 2026
67f07be
chore(LLMs): remove LLMs auto docs (#8130)
ArgoZhang Jun 18, 2026
4c525ae
feat(DockView): bump version 10.0.18 (#8132)
ArgoZhang Jun 18, 2026
d811fa9
feat(UniverSheet): bump version 10.0.14 (#8134)
ArgoZhang Jun 19, 2026
fc2fa3d
chore(LLMs): add LLMsDocsGenerator tool (#8136)
ArgoZhang Jun 20, 2026
3aeb67c
doc(NavMenu): update component category (#8138)
ArgoZhang Jun 21, 2026
9f70b5f
chore(Docs): update docs.json configuration file (#8140)
ArgoZhang Jun 21, 2026
10991e1
doc(Docs): update extensions components/services (#8142)
ArgoZhang Jun 22, 2026
f44940c
chore(LLMs): bump version 10.0.3 (#8144)
ArgoZhang Jun 22, 2026
9b777c4
fix(AutoComplete): skip filter when set SkipMatch to true (#8149)
ArgoZhang Jun 22, 2026
e2a8ed4
feat(DockView): make IsLock parameter work event set ShowLock to fals…
ArgoZhang Jun 23, 2026
2023878
doc(SvgIcon): update Href parameter doc (#8153)
ArgoZhang Jun 24, 2026
81d18e0
feat(SvgIcon): add custom class support (#8155)
ArgoZhang Jun 24, 2026
3cb9f71
feat(TreeViewItem): add IconTemplate parameter (#8157)
ArgoZhang Jun 24, 2026
568f404
test(TreeView): add IconTempalte unit test (#8160)
ArgoZhang Jun 24, 2026
9a27432
feat(Transfer): add OnDisabledCallback parameter (#8158)
ArgoZhang Jun 24, 2026
3e98780
Merge branch 'main' into feat-table-DynamicFixedColumn
ArgoZhang Jul 9, 2026
1235e3a
Merge branch 'main' into feat-table-DynamicFixedColumn
ArgoZhang Jul 11, 2026
0f9f31f
fix(Table): support toggling fixed columns at runtime
ArgoZhang Jul 11, 2026
14401db
Merge branch 'main' into feat-table-DynamicFixedColumn
ArgoZhang Jul 15, 2026
07decf2
fix(Table): use client rendered width when toggling fixed columns
ArgoZhang Jul 15, 2026
22506d3
fix(Table): incorrect fixed-right when toggling fixed columns at runtime
ArgoZhang Jul 15, 2026
21f05ad
fix(Table): exclude non-fixed columns from sticky offset calculation
ArgoZhang Jul 16, 2026
cbe1cb4
fix(Table): eliminate layout shift when toggling fixed columns at run…
ArgoZhang Jul 16, 2026
2440e99
fix(Table): keep explicit width columns from resizing when toggling f…
ArgoZhang Jul 16, 2026
95d1b24
refactor(Table): exclude fixed state from client column state persist…
ArgoZhang Jul 16, 2026
2affaf3
refactor(Table): remove Fixed from TableColumnState
ArgoZhang Jul 16, 2026
0baca1e
refactor(Table): simplify fixed column state sync and fix width resto…
ArgoZhang Jul 16, 2026
f2d467a
Merge branch 'main' into feat-table-DynamicFixedColumn
ArgoZhang Jul 20, 2026
20cd34b
merge: 合入最新 main(含 #8241 列宽重置,1 commit),合并后动态固定列 3 项测试失败、由后续 3 个提交修复(…
momijijin Jul 20, 2026
ab313ea
fix(table): 占位回填宽不回灌列实例以恢复实测宽度机制 (PR #8110, Issue #8094)
momijijin Jul 20, 2026
748e454
fix(table): ClearTableColumnClientStatus 先还原覆盖宽再清状态 (PR #8110, Issue …
momijijin Jul 20, 2026
4bb6d42
test(table): 补充动态固定列忽略列与清除状态还原用例 (PR #8110, Issue #8094)
momijijin Jul 20, 2026
00a8bce
fix(table): 占位宽判别改为显式标记以消除碰撞误判 (PR #8110, Issue #8094)
momijijin Jul 21, 2026
682fe1d
test(table): 补充占位宽碰撞与泄漏的回归用例 (PR #8110, Issue #8094)
momijijin Jul 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ private bool IsFixRight(ITableColumn col)
// 获得当前列索引
var index = columns.IndexOf(col);

return !columns.Take(index).All(i => i.Fixed);
// 前缀固定列判定为左固定,该列到最后一列全部固定(构成固定后缀)时判定为右固定
// 孤立的中间固定列回落为左固定,避免动态切换固定列时误判为右固定
return !columns.Take(index).All(i => i.Fixed) && columns.Skip(index).All(i => i.Fixed);
}

/// <summary>
Expand Down Expand Up @@ -358,7 +360,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader
private string? GetLeftStyle(ITableColumn col)
{
var columns = GetVisibleColumns();
var defaultWidth = 200;
var defaultWidth = DefaultFixedColumnWidth;
var width = 0;
var start = 0;
var index = columns.IndexOf(col);
Expand All @@ -377,7 +379,12 @@ string GetFixedHeaderStyleString() => IsFixedHeader
while (index > start)
{
var column = columns[start++];
width += column.Width ?? defaultWidth;

// 仅累加左固定列宽度 未固定列滚动时移出视口 不参与 sticky 偏移
if (column.Fixed)
{
width += column.Width ?? defaultWidth;
}
}
return $"left: {width}px;";
}
Expand All @@ -393,7 +400,12 @@ string GetFixedHeaderStyleString() => IsFixedHeader
for (var i = index + 1; i < columns.Count; i++)
{
var column = columns[i];
width += column.Width ?? defaultWidth;

// 仅累加右固定列宽度 未固定列滚动时移出视口 不参与 sticky 偏移
if (column.Fixed)
{
width += column.Width ?? defaultWidth;
}
}
if (ShowExtendButtons && FixedExtendButtonsColumn)
{
Expand Down
Loading
Loading