From 79e8ce9ed4e3deea7b091dc7858752c4a501305e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 18:29:39 +0800 Subject: [PATCH 1/8] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/IntersectionObserver/LoadMore.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor index 13a44835e20..9786a6b6099 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor +++ b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor @@ -1,7 +1,8 @@ @namespace BootstrapBlazor.Components @inherits BootstrapModuleComponentBase - +
@if (CanLoading) From e8c63d17b76b29f8e00474e4d82b15316aad2a3d Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 18:32:42 +0800 Subject: [PATCH 2/8] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20UseElement?= =?UTF-8?q?Viewport=20=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/IntersectionObserver/LoadMore.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor index 9786a6b6099..c8ac258d29c 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor +++ b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor @@ -1,8 +1,8 @@ @namespace BootstrapBlazor.Components @inherits BootstrapModuleComponentBase - +
@if (CanLoading) From 10c1446e5aebe9fb1433f0acc5f73f2d38748497 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 19:28:01 +0800 Subject: [PATCH 3/8] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E4=B8=BA=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntersectionObserver/IntersectionObserver.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs index 11691d48843..0ed3ffccea1 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs @@ -12,7 +12,7 @@ public partial class IntersectionObserver { /// /// 获得/设置 是否使用元素视口作为根元素 默认为 false 使用浏览器视口作为根元素 - /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is false + /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is true /// [Parameter] public bool UseElementViewport { get; set; } From 367fc1109ca22b8b2ef06faf9e7ccc5a7ac550b7 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 19:35:54 +0800 Subject: [PATCH 4/8] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntersectionObserver/IntersectionObserver.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs index 0ed3ffccea1..11691d48843 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs @@ -12,7 +12,7 @@ public partial class IntersectionObserver { /// /// 获得/设置 是否使用元素视口作为根元素 默认为 false 使用浏览器视口作为根元素 - /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is true + /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is false /// [Parameter] public bool UseElementViewport { get; set; } From e0856e013be4f750e602b179712b61663aa890cb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 19:36:09 +0800 Subject: [PATCH 5/8] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/IntersectionObserver/LoadMore.razor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor index c8ac258d29c..13a44835e20 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor +++ b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor @@ -1,8 +1,7 @@ @namespace BootstrapBlazor.Components @inherits BootstrapModuleComponentBase - +
@if (CanLoading) From f5262b119f7eedb527de258311a077654c48666c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 19:36:49 +0800 Subject: [PATCH 6/8] =?UTF-8?q?doc:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/IntersectionObservers.razor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/IntersectionObservers.razor b/src/BootstrapBlazor.Server/Components/Samples/IntersectionObservers.razor index ae4fc22ece8..dec03c7eca9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/IntersectionObservers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/IntersectionObservers.razor @@ -92,7 +92,8 @@

@((MarkupString)Localizer["IntersectionObserverThresholdDesc"].Value)

@_thresholdValueString
- +
@@ -118,8 +119,7 @@
}
- - +
From fbdfa8746004f126fad6b8c49dff4cf5d0c18672 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 21:15:21 +0800 Subject: [PATCH 7/8] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E4=B8=BA=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntersectionObserver/IntersectionObserver.razor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs index 11691d48843..2302c3ec051 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs @@ -11,11 +11,11 @@ namespace BootstrapBlazor.Components; public partial class IntersectionObserver { /// - /// 获得/设置 是否使用元素视口作为根元素 默认为 false 使用浏览器视口作为根元素 - /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is false + /// 获得/设置 是否使用元素视口作为根元素 默认为 true 使用当前元素作为根元素 + /// The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is true /// [Parameter] - public bool UseElementViewport { get; set; } + public bool UseElementViewport { get; set; } = true; /// /// Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros. From 7976950589ff479c1557abc117cbd715f02411b2 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 18 Jul 2025 21:15:35 +0800 Subject: [PATCH 8/8] =?UTF-8?q?refactor:=20=E8=AE=BE=E7=BD=AE=20UseElement?= =?UTF-8?q?Viewport=20=E5=80=BC=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/IntersectionObserver/LoadMore.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor index 13a44835e20..c8ac258d29c 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor +++ b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor @@ -1,7 +1,8 @@ @namespace BootstrapBlazor.Components @inherits BootstrapModuleComponentBase - +
@if (CanLoading)