Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 11cfb8c

Browse files
committed
解决 Column FootContent 不生效的问题
1 parent 1677a3e commit 11cfb8c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

doc/TDesign.Docs.Shared/Pages/TestPage.razor

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99
<TTableCheckboxColumn Field="f=>f.Id" />
1010
<TTableFieldColumn Field="f=>f.Id" />
1111
<TTableFieldColumn Field="f=>f.Name" />
12-
<TTableFieldColumn Field="f=>f.Age" />
12+
<TTableFieldColumn Field="f=>f.Age" >
13+
<FooterContent>
14+
底部内容
15+
</FooterContent>
16+
</TTableFieldColumn>
1317
<TTableFieldColumn Field="f=>f.Gender" />
18+
1419
</TTable>
1520

1621
@code {

src/TDesign/Components/Table/TTable.build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ RenderFragment BuildEmptyContent()
150150
.Close();
151151
}, new { colspan = ChildComponents.Count }))
152152
.Close()
153-
.Element("tr", "t-tdesign__custom-footer-tr",GetColumns().All(m => m.FooterContent is not null))
153+
.Element("tr", "t-tdesign__custom-footer-tr",GetColumns().Any(m => m.FooterContent is not null))
154154
.Content(tr =>
155155
{
156156
tr.ForEach("td", ChildComponents.Count, e =>

0 commit comments

Comments
 (0)