amis GETRENDERERDATA获取数据失败

p5fdfcr1  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(55)
描述问题:

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

截图或视频:

如何复现(请务必完整填写下面内容):
  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\")}"
              }
            }
          ]
        }
      }
    }
  ]
}
  1. 操作步骤
    直接在官网demo中,点击【获取表单相关数据】操作即可。
lbsnaicq

lbsnaicq1#

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

Please review the labels and make any necessary changes.

相关问题