amis icon indicating copy to clipboard operation
amis copied to clipboard

tabs设置的disabled优先级没有form的高

Open rumunanfeng opened this issue 9 months ago • 1 comments

描述问题:

form设置了属性disabled 但是我不想让form下面的tabs禁用,给tabs设置了disabled,结果无效,tabs仍然是禁用。 希望是tabs设置的disabled属性优先级更高

截图或视频:

image

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

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

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

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

{
  "type": "form",
  "body": [
    {
      "type": "tabs",
      "tabs": [
        {
          "title": "Tab 1",
          "disabled": false,
          "body": [
            {
              "type": "tpl",
              "tpl": "Content",
              "id": "u:6b421b486ddf"
            }
          ],
          "id": "u:f65b32ad9ef6"
        },
        {
          "title": "Tab 2",
          "body": [
            {
              "type": "tpl",
              "tpl": "Content"
            }
          ],
          "disabled": false
        }
      ],
      "disabled": false,
      "id": "u:d3fbf1dd5f29"
    }
  ],
  "disabled": true,
  "id": "u:70d586f0d433",
  "actions": [
    {
      "type": "submit",
      "label": "提交",
      "primary": true,
      "id": "u:54c611c65732"
    }
  ],
  "feat": "Insert"
}
  1. 操作步骤
  2. 复制code
  3. 打开官方编辑器
  4. 粘贴到code里面
  5. 查看tab是否禁用

rumunanfeng avatar May 22 '24 02:05 rumunanfeng