mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
41077bc2fb
* select-rewritten select-rewritten * modul: select - update 1 * select-update2 * select-update3 * select-update 4 * feat: append label tag & auto tokenization * fix: conflict in drpdown demo Co-authored-by: Lars Diederich <diederich@evodata.de> Co-authored-by: ElderJames <shunjiey@hotmail.com>
25 lines
664 B
C#
25 lines
664 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign.Select.Internal
|
|
{
|
|
public partial class SelectOptionGroup<TItemValue, TItem>
|
|
{
|
|
private const string ClassNamePrefix = "ant-select-item-group";
|
|
[CascadingParameter] internal Select<TItemValue, TItem> SelectParent { get; set; }
|
|
string _oldGroupName = string.Empty;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
SetClassMap();
|
|
base.OnInitialized();
|
|
}
|
|
|
|
protected void SetClassMap()
|
|
{
|
|
ClassMapper.Clear()
|
|
.Add("ant-select-item")
|
|
.Add(ClassNamePrefix);
|
|
}
|
|
}
|
|
}
|