amis icon indicating copy to clipboard operation
amis copied to clipboard

definitions 使用表单报错

Open zimo888 opened this issue 6 years ago • 2 comments

描述问题:

definitions 使用表单组件的时候报错,感觉form被转换成了control

Error: 找不到对应的渲染器

Path: page/body/0//0/control

{
  "type": "control",
  "control": {
    "type": "text",
    "name": "name",
    "label": "姓名:"
  }
}

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

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

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

  "definitions": {
                      "myform": {
                        "type": "form",
                        "controls": [
                            {
                                "type": "text",
                                "name": "name",
                                "label": "姓名:"
                            },
                            {
                                "name": "email",
                                "type": "email",
                                "label": "邮箱:"
                            }
                        ]
                      }
                    },
                    "type": "page",
                    "body": [
                        {
                            "$ref":"myform",
                        }
                    ]
                  })

zimo888 avatar Oct 11 '20 10:10 zimo888

问题已修复,待发版

2betop avatar Oct 25 '20 02:10 2betop

更新到最新版试试

RickCole21 avatar Nov 27 '20 09:11 RickCole21