有没有办法使用 Blazorise 从列表中选择默认值?现在默认值为空,但我希望它是“3”。
<Select @bind-SelectedValue="@_someProperty">
@foreach (string number in _numbers)
{
<SelectItem Value="@number ">@number </SelectItem>
}
</Select>
@code
private static readonly string[] _numbers =
{
"1", "2", "3", "4", "5",
};