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: 修复 combo 同步父级数据可能存在展示值和实际值不一致的问题 Close: #8773 #8831

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

2betop
Copy link
Collaborator

@2betop 2betop commented Nov 21, 2023

What

🤖[deprecated] Generated by Copilot at 8134303

This pull request fixes two data synchronization issues in the Form and Combo renderers, which caused data inconsistency and overwriting problems. It uses the initedAt property and the tmpValue property to ensure the data changes are properly reflected and emitted.

🤖[deprecated] Generated by Copilot at 8134303

initedAt reacts
syncing data with changes
autumn bug is fixed

Why

Close: #8773

How

🤖[deprecated] Generated by Copilot at 8134303

  • Fix data inconsistency bug in Form renderer by reacting to store initialization (link)
  • Prevent value overwrite in Combo component by using tmpValue instead of props.value (link)

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.

@2betop 2betop added this to the 3.6.0 milestone Nov 22, 2023
@github-actions github-actions bot added the bug Something isn't working label Nov 22, 2023
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.

@lurunze1226 lurunze1226 merged commit be312da into baidu:master Nov 23, 2023
3 checks passed
lengqingfeng pushed a commit to lengqingfeng/amis that referenced this pull request Dec 28, 2023
…amis

* 'gjamis' of https://github.com/lengqingfeng/amis: (57 commits)
  feat: 树组件优化 (baidu#7946)
  fix(amis-editor): 渲染错误拦截不展示schema
  docs(amis): 补充custom组件使用vue语法的说明 (baidu#8887)
  fix:兼容schema为空的情况 (baidu#8888)
  fix: 修复页面设计器重复执行onChange的问题
  feat: Switch组件的onText和offText支持Schema配置 (baidu#8816)
  fix: 修复下拉弹窗在某些情况点击外层不关闭的问题
  feat: 子编辑器公式输入框变量中加入宿主组件上下文变量的声明
  style: 「设计器」配置面板居中必填项*样式调整
  feat: 主题编辑器渲染器开源 (baidu#8820)
  styles: 调整InputRating组件图标尺寸 (baidu#8869)
  feat:scoped支持调用amis动作 (baidu#8875)
  style: 调整 table 固顶模式的样式兼容 safari Close: baidu#8708 (baidu#8863)
  fix: 修复 combo 同步父级数据可能存在展示值和实际值不一致的问题 Close: baidu#8773 (baidu#8831)
  feat: input-date & input-date-range 事件动作 setValue 支持相对时间 Close: baidu#8845 (baidu#8848)
  chore: attachement 兼容文件名空格转义成 + 号的情况 Closes baidu#8488 (baidu#8846)
  docs: 补充 crud column 的 seachable 说明结合 defaultParams 可配置默认排序 (baidu#8870)
  fix: 修复 jssdk 模式通过 embed 返回的 scoped 获取组件失败的问题 Close: baidu#8864
  chore: 弹窗中校验表单错误 3s 后自动消失以免误会 Close: baidu#1636 (baidu#8849)
  feat: CRUD组件matchFunc支持使用matchSorter函数; docs: 前端分页的使用提示
  ...
@2betop 2betop deleted the fix-combo-form2 branch January 17, 2024 13:06
2betop added a commit that referenced this pull request Mar 26, 2024
* fix: 修复 table2 树形数据展示对应错误问题

* fix: 修复 combo 同步父级数据可能存在展示值和实际值不一致的问题 Close: #8773 (#8831)

* fix: 修复 combo 中有 pipeIn & pipeOut 场景时报错 Close: #8970

* fix: 修复 combo tabs 模式新成员中有必填字段未填写也能通过校验的问题

* fix: 修复 combo 可能无限触发 onChange 的问题

* fix: 修复 combo 同步父级数据可能存在展示值和实际值不一致的问题 Close: #8773

* fix: 修复 combo 中有 pipeIn & pipeOut 场景时报错 Close: #8970 (#8980)

* fix: 修复页面设计器重复执行onChange的问题

* fix: 修复数据下发同步问题 (#9625)

* fix: 修复 crud 重置失效的问题 Close: #9686 (#9693)

* fix: crud2条件查询表单重置失效 (#9706)

* chore: combo 中减少表单项重绘

* fix typecheck error

---------

Co-authored-by: wutong25 <wutong25@baidu.com>
Co-authored-by: walkin <wyc19966@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]combo控件数据同步父级域数据时界面与实际数据不一致
3 participants