amis
amis copied to clipboard
文档中给的示例代码不能使用,dialog中不能使用tpl
描述问题:
文档中给的示例代码不能使用,dialog中不能使用tpl
截图或视频:

如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的? jssdk
-
粘贴有问题的完整
amis schema代码:
{
"type": "page",
"body": [
{
"type": "button",
"label": "弹一个框",
"actionType": "dialog",
"dialog": {
"title": "提示",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?waitSeconds=1",
"body": [
{
"type": "tpl",
"tpl": "这是一个简单的弹框"
}
]
},
"actions": [
{
"type": "button",
"actionType": "confirm",
"label": "Feedback",
"feedback": {
"body": "这是一个feedback弹框",
"skipRestOnCancel": true,
"actions": [
{
"type": "button",
"actionType": "close",
"label": "关闭"
}
]
}
}
]
}
}
]
}
- 操作步骤 amis-editor中使用 https://aisuda.github.io/amis-editor-demo
这是因为之前的编辑器没升级 amis 版本,现在升级了