!2290 doc(#I4PPRR): update sample code for table footer

* doc: 更新 Footer 示例
This commit is contained in:
Argo 2022-01-06 11:17:37 +00:00
parent 22d74bbefb
commit b0cbe1da84
2 changed files with 9 additions and 2 deletions

View File

@ -362,6 +362,13 @@ public partial class Tables
ValueList = "true / false / null",
DefaultValue = "null"
},
new() {
Name = nameof(Table<Foo>.IsHideFooterWhenNoData),
Description = "无数据时是否显示 Footer",
Type = "boolean",
ValueList = "true / false",
DefaultValue = "false"
},
new() {
Name = "ClickToSelect",
Description = "点击行即选中本行",

View File

@ -36,7 +36,7 @@
</DemoBlock>
<DemoBlock Title="Footer 模板" Introduction="设置 <code>FooterTemplate</code> 自定义表格底部显示内容" Name="FooterTemplate">
<p><code>FooterTemplate</code> 组件有 <code>TableFooter</code> 模板,其数据上下文为 <code>Table</code> 组件的数据集合 <code>IEnumerable&lt;TItem&gt;</code></p>
<p>无数据时默认显示 <code>Footer</code> 可通过设置 <code>@nameof(Table<Foo>.IsHideFooterWhenNoData)</code> 参数隐藏 <code>Footer</code></p>
<Table TItem="Foo" ShowFooter="true" class="footer-demo"
IsPagination="true" PageItemsSource="@PageItemsSource" OnQueryAsync="@OnQueryAsync">
<TableColumns>