From afdbf25765186111411dd6e72af8b228144779f6 Mon Sep 17 00:00:00 2001 From: Jie Date: Thu, 26 Feb 2026 15:04:42 +0800 Subject: [PATCH] refactor(ptable): extract search form toggle logic into dedicated method for clarity --- src/CleanAdmin.Web.Client/Components/PTable.razor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CleanAdmin.Web.Client/Components/PTable.razor b/src/CleanAdmin.Web.Client/Components/PTable.razor index b84a3f0..9cf659b 100644 --- a/src/CleanAdmin.Web.Client/Components/PTable.razor +++ b/src/CleanAdmin.Web.Client/Components/PTable.razor @@ -31,7 +31,7 @@ { } @@ -176,6 +176,12 @@ ResetTableHeight(); } + private void ToggleSearchForm() + { + _searchFormVisible = !_searchFormVisible; + ResetTableHeight(); + } + private void ResetTableHeight() { _ = InvokeAsync(async () =>