amis icon indicating copy to clipboard operation
amis copied to clipboard

bug: input-table 一列使用 autoFill 填充字段,数据没填充在数组里,导致数据提交错误

Open lengqingfeng opened this issue 1 year ago • 2 comments

描述问题:

input-table 一列使用下拉 autoFill 填充字段,数据没填充在数组里,导致数据提交错误

截图或视频:

id 填充到外部了,之前老版本没问题,没有填充到数组里,到表单独一列 截屏2024-01-23 17 07 17

input-table 一列使用下拉 autoFill 填充字段,数据没填充在数组里,导致数据提交错误

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

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

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

  3. 粘贴有问题的完整 amis schema 代码:

       {
  "type": "page",
  "title": "Hello low code",
  "body": [
    {
      "type": "form",
      "api": "/api/mock2/form/saveForm",
      "body": [
        {
          "type": "input-table",
          "name": "table",
          "label": "表格表单",
          "columns": [
            {
              "label": "名称",
              "name": "name",
              "quickEdit": {
                "type": "input-text",
                "name": "name",
                "id": "u:514910e73695"
              },
              "id": "u:97d119520d7c"
            },
            {
              "label": "分数",
              "name": "score",
              "quickEdit": {
                "type": "input-number",
                "name": "score",
                "id": "u:644f5984ff07"
              },
              "id": "u:60636ff9ed10"
            },
            {
              "label": "等级",
              "name": "level",
              "quickEdit": {
                "type": "select",
                "name": "level",
                "autoFill": {
                  "id": "$id"
                },
                "id": "u:38014752298b",
                "options": [
                  {
                    "label": "a",
                    "value": "111",
                    "id": 111
                  },
                  {
                    "label": "a1",
                    "value": "1121",
                    "id": 222
                  }
                ]
              },
              "id": "u:bc682229ad4f"
            }
          ],
          "addable": true,
          "footerAddBtn": {
            "label": "新增",
            "icon": "fa fa-plus",
            "id": "u:a0d2d9eab4f7"
          },
          "strictMode": true,
          "id": "u:c296ba75753c",
          "minLength": 0,
          "editable": true,
          "removable": true
        }
      ],
      "id": "u:a2f24ee3ab2d",
      "debug": true
    }
  ],
  "id": "u:09eedced8bb6",
  "asideResizor": false,
  "style": {
    "boxShadow": " 0px 0px 0px 0px transparent"
  },
  "pullRefresh": {
    "disabled": true
  }
}```

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

lengqingfeng avatar Jan 23 '24 08:01 lengqingfeng

👍 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[bot] avatar Jan 23 '24 08:01 github-actions[bot]

👍 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[bot] avatar Jan 24 '24 01:01 github-actions[bot]

希望官方尽快修复此问题😖

rumunanfeng avatar Feb 19 '24 03:02 rumunanfeng