Skip to content

Commit 51234a0

Browse files
committed
doc: 更新示例文档
1 parent 38f2176 commit 51234a0

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/BootstrapBlazor.Server/Components/Samples/IntersectionObservers.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
Introduction="@Localizer["LoadMoreIntro"]"
108108
Name="LoadMoreComponent">
109109
<section ignore>
110-
<div>@Localizer["LoadMoreDesc"]</div>
110+
<div>@((MarkupString)Localizer["LoadMoreDesc"].Value)</div>
111111
</section>
112112
<div style="height: 400px; overflow: auto;">
113113
<div class="bb-list-demo">
@@ -118,7 +118,7 @@
118118
</div>
119119
}
120120
</div>
121-
<LoadMore OnLoadMore="OnLoadMoreItemAsync" CanLoading="_canLoading">
121+
<LoadMore OnLoadMoreAsync="OnLoadMoreItemAsync" CanLoading="_canLoading">
122122
</LoadMore>
123123
</div>
124124
</DemoBlock>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6855,7 +6855,10 @@
68556855
"AttributeAutoUnobserveWhenIntersection": "Whether to automatically cancel the observation when element visible",
68566856
"AttributeAutoUnobserveWhenNotIntersection": "Whether to automatically cancel the observation when element invisible",
68576857
"AttributeOnIntersectingAsync": "The callback when intersecting",
6858-
"AttributeChildContent": "Child component"
6858+
"AttributeChildContent": "Child component",
6859+
"LoadMoreTitle": "LoadMore Component",
6860+
"LoadMoreIntro": "By setting the <code>LoadMore</code> component parameter <code>IsLoading</code> to control the loading state, the <code>OnLoadMoreAsync</code> callback method loads more data",
6861+
"LoadMoreDesc": "In this example, the loading indicator is displayed by setting <code>CanLoading</code> to <code>true</code>, and the <b>No More Data</b> prompt text is displayed by setting it to <code>false</code> after loading is complete. The UI for loading more data can be customized through <code>LoadingTemplate</code>, the UI displayed when there is no more data can be customized through <code>NoMoreTemplate</code>, and the indicator text displayed when there are no more add-ons can be set through the <code>NoMoreText</code> parameter."
68596862
},
68606863
"BootstrapBlazor.Server.Components.Samples.SortableLists": {
68616864
"SortableListTitle": "SortableList",

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6855,7 +6855,10 @@
68556855
"AttributeAutoUnobserveWhenIntersection": "元素可见时是否自动取消观察",
68566856
"AttributeAutoUnobserveWhenNotIntersection": "元素不可见时是否自动取消观察",
68576857
"AttributeOnIntersectingAsync": "可见回调方法",
6858-
"AttributeChildContent": "子组件"
6858+
"AttributeChildContent": "子组件",
6859+
"LoadMoreTitle": "LoadMore 组件",
6860+
"LoadMoreIntro": "通过设置 <code>LoadMore</code> 组件参数 <code>CanLoading</code> 控制加载状态,<code>OnLoadMoreAsync</code> 回调方法加载更多数据",
6861+
"LoadMoreDesc": "本例中通过设置 <code>CanLoading</code> 为 <code>true</code> 显示加载指示符,加载完成后设置为 <code>false</code> 显示 <b>没有更多数据</b> 提示文本,可以通过 <code>LoadingTemplate</code> 自定义加载更多的 UI,通过 <code>NoMoreTemplate</code> 自定义没有更多数据时显示的 UI,可以通过 <code>NoMoreText</code> 参数设置没有更多加载项时显示的指示文本"
68596862
},
68606863
"BootstrapBlazor.Server.Components.Samples.SortableLists": {
68616864
"SortableListTitle": "SortableList 拖拽组件",

0 commit comments

Comments
 (0)