baidu / amis

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

combo组件多选模式下,在使用拼接符时会无限增加记录。 #10440

Open 648932602 opened 3 months ago

648932602 commented 3 months ago

描述问题:

combo组件多选模式下,在使用拼接符时会无限增加记录。

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

1.代码如下。

{
  "type": "form",
  "title": "表单",
  "mode": "horizontal",
  "body": [
    {
      "type": "combo",
      "label": "邮箱列表",
      "name": "emails",
      "multiple": true,
      "addable": true,
      "removable": true,
      "removableMode": "icon",
      "addBtn": {
        "label": "新增",
        "icon": "fa fa-plus",
        "level": "primary",
        "size": "sm"
      },
      "items": [
        {
          "type": "input-email",
          "name": "email",
          "placeholder": "文本",
          "size": "md"
        }
      ],
      "strictMode": true,
      "syncFields": [],
      "required": true,
      "size": "md",
      "joinValues": true,
      "flat": true,
      "delimiter": ","
    }
  ]
}
  1. 操作步骤 在邮箱文本框中输入','后,combo中子项无限增长。