amis clearValueOnHidden在combo嵌套时失效

qltillow  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(37)
描述问题:
截图或视频:

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

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    npm
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    最新版本
  3. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": {
    "type": "form",
    "debug": true,
    "data": {
      "user": [
        {
          "test": "11",
          "xxx": []
        }
      ]
    },
    "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
    "body": [
      {
        "type": "combo",
        "name": "user",
        "label": "用户",
        "multiple": true,
        "multiLine": true,
        "items": [
          {
            "type": "input-text",
            "name": "test"
          },
          {
            "type": "combo",
            "label": "xxx",
            "name": "xxx",
            "multiLine": true,
            "multiple": true,
            "items": [
              {
                "name": "text",
                "label": "名字",
                "type": "input-text"
              },
              {
                "hiddenOn": "text",
                "clearValueOnHidden": true,
                "name": "gender",
                "label": "性别",
                "type": "select",
                "options": [
                  "男",
                  "女"
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
  1. 操作步骤
  2. 用户combo新增下一条数据
  3. 选择 性别 男
  4. 输入 名字,此时性别选择框隐藏。
  5. 删除名字,此时性别选择框展现。但数据未被清理。
bwleehnv

bwleehnv1#

请问combo嵌套,碰到性能问题没有?

相关问题