Commit 6570642
feat(Table): add FitColumnWidthIncludeHeader parameter (dotnetcore#6871)
* Update auto-fit column width callback to include width
Modified the OnAutoFitContentAsync callback to accept the calculated column width as a parameter in both C# and JavaScript. This allows custom logic to consider the current width when determining the final column width, improving flexibility for auto-fit scenarios.
Co-Authored-By: ljmay168 <[email protected]>
* Update OnAutoFitContentAsync to accept calcWidth parameter
Modified the UnitTest
* Update TableTest.cs
修改 单元测试宽度计算
Signed-off-by: AApuci <[email protected]>
* revert: 撤销与本 PR 无关改动
* revert: 撤销更改
* test: 代码格式化
* refactor: 弃用 OnAutoFitContentAsync 改用 OnAutoFitColumnWidthCallback 回调方法
* refactor: 更改方法名称
* feat: 增加 FitColumnWidthIncludeHeader 参数
* feat: 传递 FitColumnWidthIncludeHeader 参数到 js
* refactor: 增加逻辑
* chore: bump version 9.11.2-beta03
---------
Signed-off-by: AApuci <[email protected]>
Co-authored-by: AApuci <[email protected]>
Co-authored-by: ljmay168 <[email protected]>
Co-authored-by: AApuci <[email protected]>1 parent b9a132b commit 6570642
File tree
3 files changed
+14
-1
lines changed- src/BootstrapBlazor
- Components/Table
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| 1069 | + | |
1069 | 1070 | | |
1070 | 1071 | | |
1071 | 1072 | | |
| |||
1598 | 1599 | | |
1599 | 1600 | | |
1600 | 1601 | | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1601 | 1608 | | |
1602 | 1609 | | |
1603 | 1610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
745 | 751 | | |
746 | 752 | | |
747 | 753 | | |
| |||
0 commit comments