We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
inputTable取消编辑时会导致数据错误,inputTable中有3条数据,当对第3条数据进行修改,将B字段值改为【b3333333】,点击保存,再对第2条数据进行修改,不做任何字段的变更,直接点击取消按钮,第2条数据变成了第3条的历史数据【a3】【b3】。
你是如何使用 amis 的? npm
amis 版本是什么? V6.7.0 ~6.10.0
粘贴有问题的完整 amis schema 代码:
amis schema
{ "type": "page", "body": { "type": "form", "api": "/amis/api/mock2/form/saveForm", "debug": true, "body": [ { "type": "input-table", "name": "table", "addable": true, "copyable": true, "copyData": { "&": "$$", "id": "${'__undefined'}", "copyFrom": "${id}" }, "editable": true, "value": [ { "a": "a1", "b": "b1", "id": 1 }, { "a": "a2", "b": "b2", "id": 2 }, { "a": "a3", "b": "b3", "id": 3 }, { "a": "a4", "b": "b4", "id": 4 } ], "columns": [ { "name": "a", "label": "A" }, { "name": "b", "label": "B" } ] } ] } }``` 5. 操作步骤 inputTable中有3条数据,当对第3条数据进行修改,将B字段值改为【b3333333】,点击保存,再对第2条数据进行修改,不做任何字段的变更,直接点击取消按钮,第2条数据变成了第3条的历史数据【a3】【b3】。
The text was updated successfully, but these errors were encountered:
刚试了确实是个bug,取消编辑状态的时候拿到上一次编辑行的数据了。
Sorry, something went wrong.
真神奇。。还真是 哈哈哈哈 我经常用这个玩意儿都没发现
欢迎大佬来交流
Amis低代码前端框架交流群【QQ 1群】:717791727 Amis低代码前端框架交流群【QQ 2群】:721182449
2betop
No branches or pull requests
描述问题:
inputTable取消编辑时会导致数据错误,inputTable中有3条数据,当对第3条数据进行修改,将B字段值改为【b3333333】,点击保存,再对第2条数据进行修改,不做任何字段的变更,直接点击取消按钮,第2条数据变成了第3条的历史数据【a3】【b3】。
截图或视频:
如何复现(请务必完整填写下面内容):
你是如何使用 amis 的?
npm
amis 版本是什么?
V6.7.0 ~6.10.0
粘贴有问题的完整
amis schema
代码:The text was updated successfully, but these errors were encountered: