jd-opensource / drip-form

基于React和JSONSchema的动态表单解决方案
https://jd-opensource.github.io/drip-form/
MIT License
613 stars 73 forks source link

feat: 新增showError替代validateTime,区分实时,提交时和不展示3种错误展示策略 #254

Closed CrazyWood007 closed 1 year ago

CrazyWood007 commented 1 year ago

Motivation

当前校验时机的描述和实际效果不完全匹配,因此改为错误展示策略,另外此前校验时机仅区分值变化时和提交时,而提交时事实上不能在提交时自动展示错误,需要用户的进一步操作,因此错误展示策略设置3种策略,实时展示、提交时展示和不展示,其中实时同原值变化时,不展示同原提交时,新的提交时,会在用户点击或调用submit时,自动修改策略,展示错误信息。

Have you read the Contributing Guidelines on pull requests?

Y

Test Plan

N

Related PRs

N

github-actions[bot] commented 1 year ago

This pull request has been automatically marked as no-pr-activity because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.