amis icon indicating copy to clipboard operation
amis copied to clipboard

checkboxes组件,同时配置"optionType": "button","static": true,会报错

Open snowing-x opened this issue 1 year ago • 0 comments

描述问题:

checkboxes组件,同时配置"optionType": "button","static": true,会报错

截图或视频:

企业微信截图_0b2f631d-16cf-4d0c-8124-db8e8f7e2de3

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

  1. 你是如何使用 amis 的? npm

  2. amis 版本是什么? 6.7.0

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

{
  "type": "page",
  "title": "checkboxes问题",
  "body": [
    {
      "type": "checkboxes",
      "label": "复选框",
      "name": "checkboxes",
      "multiple": true,
      "options": [
        {
          "label": "选项A",
          "value": "A"
        },
        {
          "label": "选项B",
          "value": "B"
        }
      ],
      "id": "u:4e6f90fb2b16",
      "optionType": "button",
      "checkAll": false,
      "joinValues": true,
      "disabled": false,
      "static": true
    }
  ],
  "id": "u:ff4537b5e7a0",
  "asideResizor": false,
  "pullRefresh": {
    "disabled": true
  },
  "regions": [
    "body"
  ]
}
  1. 操作步骤 复制粘贴上面的schema配置,预览即可复现。

snowing-x avatar Oct 09 '24 09:10 snowing-x