mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 23:53:48 +00:00
Refactor components (#80)
This commit is contained in:
1 parent
a18cb22263
commit
1d1af91f3e
137 files changed
+220
-220
No files matched your search
@@ -0,0 +1,24 @@
|
||||
@typeparam T
|
||||
|
||||
<MudButtonGroup Color="@this.Color" Variant="Variant.Filled">
|
||||
@if (string.IsNullOrWhiteSpace(this.Icon))
|
||||
{
|
||||
<MudButton OnClick="() => this.OnClick(this.selectedValue)">
|
||||
@this.SelectedValueName()
|
||||
</MudButton>
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudButton StartIcon="@this.Icon" OnClick="() => this.OnClick(this.selectedValue)">
|
||||
@this.SelectedValueName()
|
||||
</MudButton>
|
||||
}
|
||||
<MudMenu Icon="@Icons.Material.Filled.ArrowDropDown" Style="align-self: auto;">
|
||||
@foreach(var item in this.Items)
|
||||
{
|
||||
<MudMenuItem OnClick="() => this.SelectItem(item)">
|
||||
@this.NameFunc(item)
|
||||
</MudMenuItem>
|
||||
}
|
||||
</MudMenu>
|
||||
</MudButtonGroup>
|
||||
Reference in new issue
Block a user