From f7682ee0ab24f7275599a338ff8c2f88fdd1d622 Mon Sep 17 00:00:00 2001 From: Argo Date: Thu, 6 Jan 2022 08:21:32 +0000 Subject: [PATCH] =?UTF-8?q?!2288=20doc(#I4PNVD):=20update=20SearchTemplate?= =?UTF-8?q?=20sample=20code=20for=20table=20*=20doc:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20SearchTemplate=20=E6=A8=A1=E6=9D=BF=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Table/TablesSearch.razor | 16 +++---- .../Samples/Table/TablesSearch.razor.cs | 47 ++++++++++++++++++- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/src/BootstrapBlazor.Shared/Samples/Table/TablesSearch.razor b/src/BootstrapBlazor.Shared/Samples/Table/TablesSearch.razor index 38dcde653..b75928dc3 100644 --- a/src/BootstrapBlazor.Shared/Samples/Table/TablesSearch.razor +++ b/src/BootstrapBlazor.Shared/Samples/Table/TablesSearch.razor @@ -20,10 +20,10 @@ ShowToolbar="true" ShowSearch="true" IsMultipleSelect="true" ShowExtendButtons="true" AddModalTitle="增加测试数据窗口" EditModalTitle="编辑测试数据窗口" SearchModel="@SearchModel" ShowEmpty="true" SearchMode="SearchMode.Top" - OnQueryAsync="@OnQueryAsync" OnResetSearchAsync="@OnResetSearchAsync" + OnQueryAsync="@OnSearchModelQueryAsync" OnResetSearchAsync="@OnResetSearchAsync" OnAddAsync="@OnAddAsync" OnSaveAsync="@OnSaveAsync" OnDeleteAsync="@OnDeleteAsync"> - + @@ -35,7 +35,7 @@
- +
@@ -103,11 +103,11 @@ @{ var items = new List() - { - new SelectedItem { Text = "请选择 ...", Value = "" }, - new SelectedItem { Text = "姓名1", Value = "姓名1" }, - new SelectedItem { Text = "姓名2", Value = "姓名2" }, - }; + { + new SelectedItem { Text = "请选择 ...", Value = "" }, + new SelectedItem { Text = "姓名1", Value = "姓名1" }, + new SelectedItem { Text = "姓名2", Value = "姓名2" }, + };