Skip to content
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

fix: #11612 修复 JSONSchema 反显的时候出现异常 #11633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jinmingpang
Copy link
Contributor

What

#11612 JSONSchema 反显时, schema 的 object类型存在"additionalProperties": false时, 表单项的value值里面存在一个,object 中未定义的 属性时,会出现一个 无法选属性的框,并且出现“添加属性”按钮。

Why

amis ui 层,JSONSchema 组件,props.value 变化的时候,同步更新 members 数组的时候,将不存在的在 member 中的 key 进行更新了。当 key 不在 member 存在的时候,进行更新应该从代码逻辑上就有问题,导致数据不对了。

How

key 在 member 存在的时候再更新。

Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the fix label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant