fix(module: segmented): fix label in SegmentedOption constructor (#3659)

This commit is contained in:
Sebastian Jura 2024-02-02 01:28:36 +01:00 committed by GitHub
parent d2f3788bed
commit a9841a873b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}
}