amis icon indicating copy to clipboard operation
amis copied to clipboard

文档中给的示例代码不能使用,dialog中不能使用tpl

Open chenyphaaa opened this issue 5 years ago • 1 comments

描述问题:

文档中给的示例代码不能使用,dialog中不能使用tpl

截图或视频:

image

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

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

  2. 粘贴有问题的完整 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": "关闭"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}
  1. 操作步骤 amis-editor中使用 https://aisuda.github.io/amis-editor-demo

chenyphaaa avatar Jun 21 '21 07:06 chenyphaaa

这是因为之前的编辑器没升级 amis 版本,现在升级了

nwind avatar Sep 27 '21 02:09 nwind