File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/BootstrapBlazor/Components/IntersectionObserver Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11@namespace BootstrapBlazor.Components
22@inherits BootstrapModuleComponentBase
33
4- <IntersectionObserver OnIntersecting =" OnIntersecting" Threshold =" 1 " AutoUnobserveWhenIntersection =" false" >
4+ <IntersectionObserver OnIntersecting =" OnIntersecting" Threshold =" @Threshold " AutoUnobserveWhenIntersection =" false" >
55 <IntersectionObserverItem >
66 <div class =" bb-intersection-loading" >
77 @if (CanLoading )
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ namespace BootstrapBlazor.Components;
1212/// </summary>
1313public partial class LoadMore
1414{
15+ /// <summary>
16+ /// 获得/设置 触底元素触发 <see cref="OnLoadMoreAsync"/> 阈值 默认为 1
17+ /// </summary>
18+ [ Parameter ]
19+ public string Threshold { get ; set ; } = "1" ;
20+
1521 /// <summary>
1622 /// 获得/设置 触底回调方法 <see cref="CanLoading"/> 为 true 时才触发此回调方法
1723 /// </summary>
You can’t perform that action at this time.
0 commit comments