amis GETRENDERERDATA获取数据失败

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

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

截图或视频:

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    官网demo
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    GitHub中release的最新版本时6.0.0
    6.0.0
  3. 粘贴有问题的完整 amis schema 代码:
  1. {
  2. "type": "page",
  3. "body": [
  4. {
  5. "type": "form",
  6. "id": "form_get_render",
  7. "wrapWithPanel": false,
  8. "data": {
  9. "name": "amis",
  10. "age": "18"
  11. },
  12. "body": [
  13. {
  14. "type": "input-text",
  15. "name": "name",
  16. "label": "name"
  17. },
  18. {
  19. "type": "input-text",
  20. "name": "age",
  21. "label": "age"
  22. }
  23. ],
  24. "className": "mb-2"
  25. },
  26. {
  27. "type": "button",
  28. "className": "mt-2",
  29. "label": "获取表单相关数据",
  30. "level": "primary",
  31. "onEvent": {
  32. "click": {
  33. "actions": [
  34. {
  35. "actionType": "toast",
  36. "args": {
  37. "msg": "name:${GETRENDERERDATA(\"form_get_render\", \"name\")},type:${GETRENDERERPROP(\"form_get_render\", \"type\")}"
  38. }
  39. }
  40. ]
  41. }
  42. }
  43. }
  44. ]
  45. }
  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.

相关问题