-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Table): add AdvanceSortDialog unit test (#2234)
* refactor: 格式化代码 * Table组件增加高级排序(自定义多列排序)功能 * fix: 修复删除的高级查询按钮 * feat: 增加高级搜索按钮图标 * refactor: 格式化代码 * doc: 格式化示例 * refactor: 更改单词拼写错误 * refactor: 更改组件名称 * doc: 更新示例文档 * refactor: TableSortItem 类 * test: 改造 TableSortItem * test: 增加单元测试 * test: 更新单元测试 * doc: 更新示例文档说明 * doc: 增加 ShowAdvancedSort 参数说明 * chore: bump version 7.11.1-beta02 * chore: 更新打包文件 * chore: 更新编译配置文件 * test: 更新单元测试
- Loading branch information
Showing
35 changed files
with
399 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@namespace BootstrapBlazor.Components | ||
@inherits ComponentBase | ||
@implements IResultDialog | ||
<div class="dialog-advance-sort"> | ||
<div class="table-advance-sort-toolbar"> | ||
<Button Color="Color.Primary" Icon="@PlusIcon" OnClick="OnClickAdd"></Button> | ||
<Button Color="Color.Danger" Icon="@RemoveIcon" OnClick="OnClickClear"></Button> | ||
</div> | ||
@foreach (var item in Value) | ||
{ | ||
<div @key="@item" class="row"> | ||
<div class="col-6"> | ||
<Select Items="Items" @bind-Value="@item.SortName" /> | ||
</div> | ||
<div class="col-4"> | ||
<Select Items="SortOrders" @bind-Value="@item.SortOrder" /> | ||
</div> | ||
<div class="col-2"> | ||
<Button Color="Color.Danger" Icon="@MinusIcon" OnClick="() => OnClickRemove(item)"></Button> | ||
</div> | ||
</div> | ||
} | ||
</div> |
Oops, something went wrong.