mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
fix(module: segmented): fix label in SegmentedOption constructor (#3659)
This commit is contained in:
parent
d2f3788bed
commit
a9841a873b
@ -10,6 +10,6 @@ namespace AntDesign
|
||||
{
|
||||
public record struct SegmentedOption<TValue>(TValue Value, string Label = null, bool Disabled = false)
|
||||
{
|
||||
public string Label { get; set; } = Value.ToString();
|
||||
public string Label { get; set; } = Label ?? Value.ToString();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user