!776 docs(#I29Y3B): update doc for SearchTemplate

* docs: update SweetAlerts doc
* docs: update SearchTemplate demo
This commit is contained in:
Argo 2020-12-19 00:32:40 +08:00
parent 5a2627b19f
commit fce355d8c5
2 changed files with 12 additions and 9 deletions

View File

@ -1,10 +1,10 @@
<Table TItem="BindItem"
IsPagination="true" PageItemsSource="@PageItemsSource"
IsStriped="true" IsBordered="true" SearchModel="@SearchModel" ShowSearch="true"
ShowToolbar="true" IsMultipleSelect="true" ShowExtendButtons="true"
AddModalTitle="增加测试数据窗口" EditModalTitle="编辑测试数据窗口"
OnQueryAsync="@OnEditQueryAsync"
OnAddAsync="@OnAddAsync" OnSaveAsync="@OnSaveAsync" OnDeleteAsync="@OnDeleteAsync">
<Table TItem="BindItem"
IsPagination="true" PageItemsSource="@PageItemsSource"
IsStriped="true" IsBordered="true" SearchModel="@SearchModel" ShowSearch="true"
ShowToolbar="true" IsMultipleSelect="true" ShowExtendButtons="true"
AddModalTitle="增加测试数据窗口" EditModalTitle="编辑测试数据窗口"
OnQueryAsync="@OnEditQueryAsync"
OnAddAsync="@OnAddAsync" OnSaveAsync="@OnSaveAsync" OnDeleteAsync="@OnDeleteAsync">
<TableColumns>
<TableColumn @bind-Field="@context.DateTime" Filterable="true" Sortable="true" />
<TableColumn @bind-Field="@context.Name" Filterable="true" Sortable="true" Searchable="true">
@ -15,10 +15,13 @@
{
var items = new List<SelectedItem>()
{
new SelectedItem { Text = "请选择 ...", Value = "" },
new SelectedItem { Text = "姓名1", Value = "姓名1" },
new SelectedItem { Text = "姓名2", Value = "姓名2" },
};
<Select TValue="string" Items="items" @bind-Value="@model.Name" ShowLabel="true" DisplayText="姓名" />
<div class="form-group col-12 col-sm-6">
<Select Items="items" @bind-Value="@model.Name" ShowLabel="true" DisplayText="姓名" />
</div>
}
}
</SearchTemplate>

View File

@ -87,7 +87,7 @@
<p><code>IsConfirm</code> 参数表示弹窗为确认窗口,自动生成 <code>取消</code> <code>确认</code> 两个按钮</p>
<Pre class="no-highlight">var ret = await SwalService.ShowModal(op);
/// ShowModal 返回后下面代码才执行
// ShowModal 返回后下面代码才执行
Trace?.Log($"模态弹窗返回值为:{ret}");
</Pre>
<Button Icon="fa fa-fa" Text="模态对话框" Color="Color.Success" OnClick="@ShowModal" />