baidu / amis

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

在@FormItem渲染器下自定义组件报错,换成@Renderer就正常 #10958

Open gfl1 opened 2 months ago

gfl1 commented 2 months ago

描述问题:

在@FormItem渲染器下自定义组件报错TypeError: rootStore.addStore is not a function ,换成@Renderer就正常

截图或视频:

image

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

  1. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

  2. 粘贴有问题的完整 amis schema 代码: { "type": "page", "body": [ { "type": "form", "id": "myForm", "actions": [ { "type": "submit", "label": "提交", "primary": true, "id": "u:afe0939f3e94" } ], "body": [ { "type": "operator", "name": "agent", "label": "员工", "params": [ { "type": "staff", "status": 2 } ], "id": "u:39e587f69064" } ], "mode": "horizontal", "debug": true } ] }

gfl1 commented 2 months ago

amis版本是6.2.2