New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Form validation support validateDebounce
#44633
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## feature #44633 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 680 680
Lines 11417 11417
Branches 3073 3073
=========================================
Hits 11417 11417
☔ View full report in Codecov by Sentry. |
components/form/index.en-US.md
Outdated
@@ -142,6 +143,7 @@ Form field component for data bidirectional binding, validation, layout, and so | |||
| shouldUpdate | Custom field update logic. See [below](#shouldupdate) | boolean \| (prevValue, curValue) => boolean | false | | | |||
| tooltip | Config tooltip info | ReactNode \| [TooltipProps & { icon: ReactNode }](/components/tooltip#api) | - | 4.7.0 | | |||
| trigger | When to collect the value of children node. Click [here](#components-form-demo-customized-form-controls) to see an example | string | `onChange` | | | |||
| validateDebounce | Delay million second to start validation | number | - | 5.9.0 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
million second ?
I guess it should be milliseconds
(ms)
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
resolve #44585
💡 Background and solution
📝 Changelog
validateDebounce
to delay validation.validateDebounce
以配置校验防抖。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at ef177f2
This pull request adds new validation-related props to the
Form.Item
component and updates the documentation and demo code accordingly. It also updates the dependency version of therc-field-form
package to enable these new features.🔍 Walkthrough
🤖 Generated by Copilot at ef177f2
validateTrigger
,validateDebounce
, andvalidateFirst
toForm.Item
component for async validation scenarios (link, link, link, link)rc-field-form
dependency version to~1.38.0
inpackage.json
to use the new features of the package (link)components/form/demo/validate-trigger.tsx
, link, link)