We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a0f30 commit cf61a6dCopy full SHA for cf61a6d
src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs
@@ -53,6 +53,12 @@ public partial class Watermark
53
[Parameter]
54
public int? Gap { get; set; }
55
56
+ /// <summary>
57
+ /// 获得/设置 是否为整页面水印 默认 false
58
+ /// </summary>
59
+ [Parameter]
60
+ public bool IsPage { get; set; }
61
+
62
private string? ClassString => CssBuilder.Default("bb-watermark")
63
.AddClass("is-page", ChildContent is null)
64
.AddClassFromAttributes(AdditionalAttributes)
@@ -97,6 +103,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
97
103
Rotate,
98
104
Gap,
99
105
ZIndex,
100
- IsPage = ChildContent is null
106
+ IsPage
101
107
};
102
108
}
0 commit comments