baidu / amis

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

GETRENDERERDATA获取数据失败 #9376

Open qidasheng369 opened 10 months ago

qidasheng369 commented 10 months ago

描述问题:

官网demo中的GETRENDERERDATA表达式函数获取获取数据失败

截图或视频:

image image

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

  1. 你是如何使用 amis 的? 官网demo

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 GitHub中release的最新版本时6.0.0 6.0.0

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

    {
    "type": "page",
    "body": [
    {
      "type": "form",
      "id": "form_get_render",
      "wrapWithPanel": false,
      "data": {
        "name": "amis",
        "age": "18"
      },
      "body": [
        {
          "type": "input-text",
          "name": "name",
          "label": "name"
        },
        {
          "type": "input-text",
          "name": "age",
          "label": "age"
        }
      ],
      "className": "mb-2"
    },
    {
      "type": "button",
      "className": "mt-2",
      "label": "获取表单相关数据",
      "level": "primary",
      "onEvent": {
        "click": {
          "actions": [
            {
              "actionType": "toast",
              "args": {
                "msg": "name:${GETRENDERERDATA(\"form_get_render\", \"name\")},type:${GETRENDERERPROP(\"form_get_render\", \"type\")}"
              }
            }
          ]
        }
      }
    }
    ]
    }
  4. 操作步骤 直接在官网demo中,点击【获取表单相关数据】操作即可。

github-actions[bot] commented 10 months ago

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

Please review the labels and make any necessary changes.

cybexr commented 1 month ago

mark