Closed MapleWithoutWords closed 1 year ago
@capdiem PTAL
@MapleWithoutWords 我简单测试了下,ValidateOnBlur在使用Rules
、或Form的DataAnnotations 和Fluent验证都是可用的。如果是MForm绑定的Model是UpsertPanelDto的父类,那应该还得在父类的Validator里设置此类的validator。具体参考例子:https://docs.masastack.com/blazor/components/forms#section-901a8fc7-fluentvalidation-9a8c8bc196c65408
@MapleWithoutWords 我简单测试了下,ValidateOnBlur在使用
Rules
、或Form的DataAnnotations 和Fluent验证都是可用的。如果是MForm绑定的Model是UpsertPanelDto的父类,那应该还得在父类的Validator里设置此类的validator。具体参考例子:https://docs.masastack.com/blazor/components/forms#section-901a8fc7-fluentvalidation-9a8c8bc196c65408
我的场景没有MForm,那我感觉这个属性没啥用
This issue is stale because it has been open for 4 days with no activity.
?
This issue is stale because it has been open for 4 days with no activity.
This issue is closed because it has been open for 3 days with stale.
Masa.Blazor version
1.0.0-preview.12
Describe the bug
I add ValidateOnBlur attribute to MTextField component,and use @bind-Value binding Title property,and add fluentvalidation validation
Expected Behavior
No response
Steps To Reproduce
No response
Reproduction code
No response
.NET version
No response
What browsers are you seeing the problem on?
No response
Additional context
No response