From ff6da821e129ae8879d3b96572ad3191685df7b4 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 11 Apr 2025 10:07:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E5=A4=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js index a1820512ab2..7a464407c7a 100644 --- a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js +++ b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.js @@ -1,6 +1,5 @@ import Data from "../../modules/data.js" import EventHandler from "../../modules/event-handler.js" -import { debounce } from "../../modules/utility.js" const cal = (el, imgWidth) => { const containerWidth = el.offsetWidth; @@ -56,7 +55,7 @@ export function init(id, invoke, method) { EventHandler.on(container, 'click', '.bb-waterfall-item', e => { const element = e.delegateTarget; const item = getWaterfallItem(element); - invokeMethodAsync('OnClickItem', item); + invoke.invokeMethodAsync('OnClickItem', item); }); EventHandler.on(window, 'scroll', () => { const offsetHeight = (window.innerHeight || document.documentElement.clientHeight) + document.documentElement.scrollTop;