-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SelectGeneric): add SelectGeneric component (#4838)
* refactor: 重构 SelectedItem 增加构造函数 * refactor: 移动 SelectedItem 到子类 * refactor: 精简代码移除 SingleSelectBase 类 * refactor: 改造 SelectedItem 泛型 * feat: 增加 SelectGeneric 组件 * feat: 增加 ToSelectList 泛型扩展方法 * refactor: 改造 Select 组件移除对泛型的支持 * doc: 更新泛型 Select 组件示例 * test: 更新单元测试 * test: 更新单元测试 * refactor: 增加排除标签 * chore: bump version 9.1.3-beta06 * test: 增加单元测试 * test: 更新单元测试 * test: 增加 Display 单元测试 * test: 更新 Select 单元测试 * refactor: 更新 SelectGeneric 值不存在时的逻辑
- Loading branch information
Showing
21 changed files
with
1,432 additions
and
287 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.
18 changes: 18 additions & 0 deletions
18
src/BootstrapBlazor/Components/SelectGeneric/ISelectGeneric.cs
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,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
// See the LICENSE file in the project root for more information. | ||
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone | ||
|
||
namespace BootstrapBlazor.Components; | ||
|
||
/// <summary> | ||
/// ISelect 接口 | ||
/// </summary> | ||
public interface ISelectGeneric<TValue> | ||
{ | ||
/// <summary> | ||
/// 增加 SelectedItem 项方法 | ||
/// </summary> | ||
/// <param name="item"></param> | ||
void Add(SelectedItem<TValue> item); | ||
} |
Oops, something went wrong.