baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.4k stars 2.52k forks source link

service组件schemaApi渲染alert组件,jdk 6.9.0前端不显示 #11147

Open leaf188 opened 2 weeks ago

leaf188 commented 2 weeks ago

描述问题:

采用service组件schemaApi渲染alert组件,在6.9.0下不显示,之前的6.8.0版本正常。

  1. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 jdk 6.9.0

  2. 粘贴有问题的完整 amis schema 代码: schemaApi 返回以下json数据

    {
    "data": {
    "body": [
      {
        "inline": false,
        "tpl": "<p>抱歉!你没有权限。</p><ul style=\"list-style-type: circle;\"><li><a href=\"mailto:user@domain.com\">userName</a></li></ul>",
        "type": "tpl",
        "wrapperComponent": ""
      }
    ],
    "className": "mb-3",
    "level": "warning",
    "showCloseButton": true,
    "showIcon": true,
    "title": "提醒",
    "type": "alert"
    },
    "msg": "",
    "status": 0
    }
github-actions[bot] commented 2 weeks ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

belongwqz commented 2 weeks ago

确实,6.9有问题,这种形式写alert不会显示。

Yuyuyuyuc commented 3 days ago

父页面加个隐藏的alert子页面就会显示了