-
-
Notifications
You must be signed in to change notification settings - Fork 50.2k
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
chore: adjust ts define #22662
chore: adjust ts define #22662
Conversation
components/form/FormItem.tsx
Outdated
@@ -19,7 +19,7 @@ export type ValidateStatus = typeof ValidateStatuses[number]; | |||
|
|||
type RenderChildren = (form: FormInstance) => React.ReactNode; | |||
type RcFieldProps = Omit<FieldProps, 'children'>; | |||
type ChildrenType = React.ReactElement | RenderChildren | React.ReactElement[] | null; | |||
type ChildrenType = RenderChildren | React.ReactNode | null; |
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.
不需要 null 了
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 94cfa71:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2112578:
|
Codecov Report
@@ Coverage Diff @@
## master #22662 +/- ##
=======================================
Coverage 98.14% 98.14%
=======================================
Files 306 306
Lines 7078 7078
Branches 1945 1945
=======================================
Hits 6947 6947
Misses 131 131
Continue to review full report at Codecov.
|
🤔 This is a ...
🔗 Related issue link
https://ant.design/components/form-cn/#components-form-demo-dynamic-form-item
💡 Background and solution
📝 Changelog
children
ts define.children
的类型定义。☑️ Self Check before Merge