From bd31c8a18755d18c65ce5f8d60bba5f15e38ab16 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 19 May 2025 17:28:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=B0=B4?= =?UTF-8?q?=E5=8D=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Watermark/Watermark.razor.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.js b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.js index cd69a9527a3..6bbaf31cfd9 100644 --- a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.js +++ b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.js @@ -121,17 +121,7 @@ const monitor = watermark => { return; } - if (options.isPage === false && el.children.length !== 2) { - clearWatermark(watermark); - return; - } - - const mark = options.isPage ? el.children[0] : el.children[1]; - if (mark.className !== 'bb-watermark-bg') { - clearWatermark(watermark); - return; - } - + const mark = el.querySelector('.bb-watermark-bg'); const style = getComputedStyle(mark); const { display, opacity, position, inset, zIndex, zoom, transform, backgroundRepeat, backgroundImage, backgroundSize } = style; if (display !== 'block') {