baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
16.49k stars 2.41k forks source link

表格编辑器严重bug #10454

Open ziBLan opened 2 weeks ago

ziBLan commented 2 weeks ago

描述问题:

在表单提交接口的请求适配器中,修改表格编辑器的数据会影响原表格编辑器数据

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? sdknpm其他...

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

  3. 粘贴有问题的完整 amis schema 代码: { "type": "page", "id": "u:f7bf7dc45b4c", "body": [ { "id": "u:c66370d67dab", "type": "form", "title": "表单", "mode": "horizontal", "dsType": "api", "feat": "Insert", "body": [ { "type": "input-table", "name": "table", "label": "表格表单", "columns": [ { "label": "名称", "name": "name", "quickEdit": { "type": "input-text", "name": "name", "id": "u:b0a0abeabc1d" }, "id": "u:faa356664d62" }, { "name": "amount", "id": "u:47979586a3e1", "type": "input-number", "mode": "popOver" }, { "label": "等级", "name": "level", "quickEdit": { "type": "select", "name": "level", "id": "u:871456dc9ebe" }, "id": "u:1d822256972f" } ], "addable": true, "footerAddBtn": { "label": "新增", "icon": "fa fa-plus", "id": "u:d3db5dc6b257" }, "strictMode": true, "id": "u:0fdc72cea23a", "minLength": 0 } ], "actions": [ { "type": "button", "label": "按钮", "onEvent": { "click": { "actions": [ { "componentId": "u:c66370d67dab", "ignoreError": false, "actionType": "submit", "outputVar": "submitResult" } ] } }, "id": "u:e3d355145ebf" } ], "resetAfterSubmit": false, "api": { "url": "/amis/api/mock2/form/saveForm", "method": "post", "requestAdaptor": "api.data.table[0]['amount'] = api.data.table[0]['amount']*100\r\nreturn api;", "adaptor": "", "messages": {}, "data": { "table": "${table}" } } } ] }

  4. 操作步骤 请简单描述一下复现的操作步骤...

github-actions[bot] commented 2 weeks ago

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

Please review the labels and make any necessary changes.