fix: #11612 修复 JSONSchema 反显的时候出现异常 #11633
Open
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.
What
#11612 JSONSchema 反显时, schema 的
object
类型存在"additionalProperties": false
时, 表单项的value值里面存在一个,object
中未定义的 属性时,会出现一个 无法选属性的框,并且出现“添加属性”按钮。Why
amis ui 层,JSONSchema 组件,props.value 变化的时候,同步更新 members 数组的时候,将不存在的在 member 中的 key 进行更新了。当 key 不在 member 存在的时候,进行更新应该从代码逻辑上就有问题,导致数据不对了。
How
key 在 member 存在的时候再更新。