Commit b9a132b
feat(Table): update auto-fit column width callback to include width (dotnetcore#6868)
* 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: 更改方法名称
---------
Signed-off-by: AApuci <[email protected]>
Co-authored-by: AApuci <[email protected]>
Co-authored-by: ljmay168 <[email protected]>
Co-authored-by: Argo Zhang <[email protected]>1 parent 737e58a commit b9a132b
File tree
3 files changed
+30
-19
lines changed- src/BootstrapBlazor/Components/Table
- test/UnitTest/Components
3 files changed
+30
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | | - | |
| 1068 | + | |
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| |||
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | | - | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1592 | 1600 | | |
1593 | 1601 | | |
1594 | 1602 | | |
| |||
1648 | 1656 | | |
1649 | 1657 | | |
1650 | 1658 | | |
| 1659 | + | |
1651 | 1660 | | |
1652 | 1661 | | |
1653 | | - | |
| 1662 | + | |
1654 | 1663 | | |
1655 | 1664 | | |
1656 | | - | |
| 1665 | + | |
1657 | 1666 | | |
1658 | | - | |
| 1667 | + | |
1659 | 1668 | | |
1660 | 1669 | | |
1661 | 1670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | 729 | | |
734 | 730 | | |
735 | 731 | | |
| |||
740 | 736 | | |
741 | 737 | | |
742 | 738 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
749 | 750 | | |
750 | 751 | | |
751 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8371 | 8371 | | |
8372 | 8372 | | |
8373 | 8373 | | |
8374 | | - | |
| 8374 | + | |
8375 | 8375 | | |
8376 | 8376 | | |
8377 | 8377 | | |
| |||
8383 | 8383 | | |
8384 | 8384 | | |
8385 | 8385 | | |
8386 | | - | |
| 8386 | + | |
8387 | 8387 | | |
8388 | 8388 | | |
8389 | | - | |
| 8389 | + | |
| 8390 | + | |
8390 | 8391 | | |
8391 | 8392 | | |
8392 | 8393 | | |
| |||
8405 | 8406 | | |
8406 | 8407 | | |
8407 | 8408 | | |
8408 | | - | |
| 8409 | + | |
8409 | 8410 | | |
8410 | 8411 | | |
8411 | 8412 | | |
| |||
0 commit comments