Skip to content

Commit fbdfa87

Browse files
committed
refactor: 更改默认值为 true
1 parent f5262b1 commit fbdfa87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ namespace BootstrapBlazor.Components;
1111
public partial class IntersectionObserver
1212
{
1313
/// <summary>
14-
/// 获得/设置 是否使用元素视口作为根元素 默认为 false 使用浏览器视口作为根元素
15-
/// <para>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</para>
14+
/// 获得/设置 是否使用元素视口作为根元素 默认为 true 使用当前元素作为根元素
15+
/// <para>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</para>
1616
/// </summary>
1717
[Parameter]
18-
public bool UseElementViewport { get; set; }
18+
public bool UseElementViewport { get; set; } = true;
1919

2020
/// <summary>
2121
/// 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.

0 commit comments

Comments
 (0)