绑定数值: @Model.BindValue

设置 DisplayText 值为 自定义标签

无论是否设置 DisplayText 值,当 ShowLabeltrue 时均显示

无论是否设置 DisplayText 值,当 ShowLabelfalse 时均不显示

@code { class Foo { /// /// /// [DisplayName("绑定标签")] public bool BindValue { get; set; } } private Foo Model { get; set; } = new Foo(); }