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

🐛[BUG]editable-table列子与formItem结合,使用筛选条件后,编辑出现错乱 #8930

Open
shyanelgz opened this issue Dec 19, 2024 · 0 comments

Comments

@shyanelgz
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

editable-table列子与formItem结合,使用筛选条件后,编辑出现错乱,显示的是之前第一行的数据。点取消按钮会错乱。
使用分页情况,编辑表格数据也会错乱

📷 复现步骤

官方的:与 FormItem 配合,列的状态字段添加
filters: true,
onFilter: (value, record) => record.state?.indexOf(value) == 0,
筛选之后,会出现编辑数据错乱

🏞 期望结果

能正常编辑数据

💻 复现代码

filters: true,
onFilter: (value, record) => record.state?.indexOf(value) == 0,

© 版本信息

  • ProComponents 版本: 2.7.16
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

1
2
3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant