Skip to content

Commit bac7f6b

Browse files
committed
doc: 更新示例
1 parent 89b2fd3 commit bac7f6b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/BootstrapBlazor.Server/Components/Samples/Table/TablesPages.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<DemoBlock Title="@Localizer["TablesPageShowTopPaginationTitle"]"
2323
Introduction="@Localizer["TablesPageShowTopPaginationIntro"]"
2424
Name="ShowTopPagination">
25-
<Table TItem="Foo"
26-
IsPagination="true" ShowTopPagination="true" PageItemsSource="@PageItemsSource" _pageItems="10" OnQueryAsync="@OnQueryAsync">
25+
<Table TItem="Foo" IsAutoScrollTopWhenClickPage="true" IsFixedHeader="true" Height="200"
26+
IsPagination="true" ShowTopPagination="true" PageItemsSource="@PageItemsSource" OnQueryAsync="@OnQueryAsync">
2727
<TableColumns>
2828
<TableColumn @bind-Field="@context.DateTime" Width="180" />
2929
<TableColumn @bind-Field="@context.Name" />

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"TablesPagePaginationTitle": "Pagination table",
7979
"TablesPagePaginationIntro": "Set <code>IsPagination</code> to display the pagination component",
8080
"TablesPageShowTopPaginationTitle": "Show on top",
81-
"TablesPageShowTopPaginationIntro": "Set <code>ShowTopPagination</code> to <code>true</code> is the top display pagination component"
81+
"TablesPageShowTopPaginationIntro": "Set <code>ShowTopPagination</code> to <code>true</code> is the top display pagination component. You can use <code>IsAutoScrollTopWhenClickPage</code> to control whether to automatically scroll to the top after turning the page. The default value is <code>false</code> to keep the scroll bar position"
8282
},
8383
"BootstrapBlazor.Server.Components.Samples.Table.TablesFixedColumn": {
8484
"TablesFixedColumnTitle": "Fixed column",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"TablesPagePaginationTitle": "分页表格",
7979
"TablesPagePaginationIntro": "设置 <code>IsPagination</code> 显示分页组件",
8080
"TablesPageShowTopPaginationTitle": "显示在顶端",
81-
"TablesPageShowTopPaginationIntro": "设置 <code>ShowTopPagination</code> 为 <code>true</code> 是顶端显示分页组件"
81+
"TablesPageShowTopPaginationIntro": "设置 <code>ShowTopPagination</code> 为 <code>true</code> 是顶端显示分页组件,可通过 <code>IsAutoScrollTopWhenClickPage</code> 控制是否翻页后自动滚动到顶端,默认值为 <code>false</code> 保持滚动条位置"
8282
},
8383
"BootstrapBlazor.Server.Components.Samples.Table.TablesFixedColumn": {
8484
"TablesFixedColumnTitle": "固定列功能",

0 commit comments

Comments
 (0)