amis
amis copied to clipboard
definitions 使用表单报错
描述问题:
definitions 使用表单组件的时候报错,感觉form被转换成了control
Error: 找不到对应的渲染器
Path: page/body/0//0/control
{
"type": "control",
"control": {
"type": "text",
"name": "name",
"label": "姓名:"
}
}
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的? npm
-
粘贴有问题的完整
amis schema代码:
"definitions": {
"myform": {
"type": "form",
"controls": [
{
"type": "text",
"name": "name",
"label": "姓名:"
},
{
"name": "email",
"type": "email",
"label": "邮箱:"
}
]
}
},
"type": "page",
"body": [
{
"$ref":"myform",
}
]
})
问题已修复,待发版
更新到最新版试试