-
-
Notifications
You must be signed in to change notification settings - Fork 50.1k
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.Item support initialValue
& getValueProps
#22993
Conversation
| validateStatus | 校验状态,如不设置,则会根据校验规则自动生成,可选:'success' 'warning' 'error' 'validating' | string | - | | | ||
| validateTrigger | 设置字段校验的时机 | string \| string[] | onChange | | | ||
| valuePropName | 子节点的值的属性,如 Switch 的是 'checked'。该属性为 `getValueProps` 的封装,自定义 `getValueProps` 后会失效 | string | 'value' | | | ||
| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 `labelCol`。你可以通过 Form 的 `wrapperCol` 进行统一设置。当和 Form 同时设置时,以 Item 为准。 | [object](/components/grid/#Col) | - | | |
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.
感觉这个月会有很多冲突。
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.
月底前来加版本吧,或者给 master 先加上一列再 rebase 进来。
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.
👌
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.
done
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 ca762e0:
|
Codecov Report
@@ Coverage Diff @@
## feature #22993 +/- ##
========================================
Coverage 98.36% 98.36%
========================================
Files 364 364
Lines 7264 7264
Branches 1982 1992 +10
========================================
Hits 7145 7145
Misses 119 119 Continue to review full report at Codecov.
|
8e48d68
to
ca762e0
Compare
@crazyair 没发布修复。 |
🤔 This is a ...
🔗 Related issue link
resolve #21816
resolve #22896
resolve #19727
💡 Background and solution
📝 Changelog
initialValue
andgetValueProps
props.initialValue
和getValueProps
属性。☑️ Self Check before Merge
View rendered components/form/index.en-US.md
View rendered components/form/index.zh-CN.md