Skip to content

Commit cf61a6d

Browse files
committed
feat: 增加 IsPage 参数
1 parent 82a0f30 commit cf61a6d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public partial class Watermark
5353
[Parameter]
5454
public int? Gap { get; set; }
5555

56+
/// <summary>
57+
/// 获得/设置 是否为整页面水印 默认 false
58+
/// </summary>
59+
[Parameter]
60+
public bool IsPage { get; set; }
61+
5662
private string? ClassString => CssBuilder.Default("bb-watermark")
5763
.AddClass("is-page", ChildContent is null)
5864
.AddClassFromAttributes(AdditionalAttributes)
@@ -97,6 +103,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
97103
Rotate,
98104
Gap,
99105
ZIndex,
100-
IsPage = ChildContent is null
106+
IsPage
101107
};
102108
}

0 commit comments

Comments
 (0)