描述问题:
官网demo中的GETRENDERERDATA表达式函数获取获取数据失败
截图或视频:
如何复现(请务必完整填写下面内容):
- 你是如何使用 amis 的?
官网demo - amis 版本是什么?请先在最新 beta 版本测试问题是否存在
GitHub中release的最新版本时6.0.0
6.0.0 - 粘贴有问题的完整
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\")}"
}
}
]
}
}
}
]
}
- 操作步骤
直接在官网demo中,点击【获取表单相关数据】操作即可。
1条答案
按热度按时间lbsnaicq1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.