amis icon indicating copy to clipboard operation
amis copied to clipboard

1.1.6版本,切换到1.1.5,bug消失。通过SDK调用,大部分元素显示两次,第二次无数据,且部分覆盖第一次内容

Open EduTecher opened this issue 5 years ago • 3 comments

描述问题:

请用一段清晰简洁的文字描述问题是什么...

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

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

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

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

<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <title>amis demo</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  <link rel="stylesheet" href="/web/node_modules/amis/sdk/sdk.css" />
  <link rel="stylesheet" href="/web/node_modules/amis/sdk/helper.css" />
  <!-- 从 1.1.0 开始 sdk.css 将不支持 IE 11,如果要支持 IE11 请引用这个 css,并把前面那个删了 -->
  <!-- <link rel="stylesheet" href="sdk-ie11.css" /> -->
  <!-- 不过 amis 开发团队几乎没测试过 IE 11 下的效果,所以可能有细节功能用不了,如果发现请报 issue -->
  <style>
    html,
    body,
    .app-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
  </style>
</head>

<body>
  <div id="root" class="app-wrapper"></div>
  <script src="/web/node_modules/amis/sdk/sdk.js"></script>
  <script type="text/javascript">
    (function () {
      let amis = amisRequire('amis/embed');
      let amisJSON = {
        "type": "page",
        "body": [
          {
            "type": "crud",
            "api": "/api/git/crud",
            "syncLocation": false,
            "columns": [
              {
                "name": "project",
                "label": "项目"
              },
              {
                "name": "repo",
                "label": "远程仓库"
              },
            ]
          },
          // {

          // }
        ]
      };
      let amisScoped = amis.embed('#root', amisJSON);
    })();
  </script>
</body>

</html>
  1. 操作步骤 请简单描述一下复现的操作步骤...

EduTecher avatar Apr 22 '21 14:04 EduTecher

怎么下载1.1.6版本?

bolianlai avatar Apr 23 '21 02:04 bolianlai

1.1.6用jsdelivr的cdn引用

EduTecher avatar Apr 23 '21 02:04 EduTecher

没懂,看起来不能复现

nwind avatar Nov 02 '21 08:11 nwind