feat(form): add valueFormat for schema #3873
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
General
Type
添加 valueFormat方法 和 isHandleDefaultValue 属性(用来判断valueFormat是否对默认值生效)
例如下面例子,在upload组件的 field1中绑定的值只能是 string[] 格式的值。假如数据格式要求是要string格式的值,那么需要做额外的处理。现在可以通过 valueFormat这个方法,直接把field1 变成string格式的