alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.65k stars 2.55k forks source link

FormilySchemaSetter中使用effects报错 #2419

Closed xyouZone closed 1 year ago

xyouZone commented 1 year ago

Describe the bug (required) / 详细描述 bug(必填)

在使用formilySchemaSetter的物料的createFormItemSchema函数中添加effects,报错:Error: Consume method cannot be used in asynchronous function body image


To Reproduce (required) / 如何复现 bug?(必填,非常重要)

Steps to reproduce the behavior: / 详细复现步骤: 1、运行lowcode-ecology这个仓库 2、在formily-materials/lowcod/utils/formilyFieldShared-index文件中,给FormilySchemaSetter的props添加effects image


Expected behavior (required) / 预期行为(必填,非常重要)

A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为


我想实现的功能是在设置器中实现配置的联动,比如在修改一项配置的同时自动修改另一设置项的下拉选项。我看formilySchemaSetter的props里面是有effects这个属性的,是我使用的问题还是bug?

JackLian commented 1 year ago

这个不是官方的仓库,需要到这里提issue哈 https://github.com/seada-low-code/lowcode-ecology/issues