lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

FunctionSetter使用问题 bug

Open ljmCoder opened this issue 3 years ago • 2 comments

1、官方demo网站, antd组件库, 拖入固钉组件 image

2、点击setter中的绑定函数 image

3、选择新建,点击ok新建绑定事件 image image

4、页面报错, 新建事件后组建会刷新, 但实际上源码部分还没更新,仅仅是通过编辑器插入了一个代码模板 ,此时组件内部调用该函数就会报错, 类似的其他组件也是这样的问题。 image

ljmCoder avatar Oct 08 '22 07:10 ljmCoder

Hello @ljmCoder. We totally like your proposal/feedback, PR wanted。

你好 @ljmCoder,我们完全同意你的提议/反馈,欢迎 PR。

github-actions[bot] avatar Oct 10 '22 07:10 github-actions[bot]

image 如官方API文档所示, target绑定的函数需要返回一个Dom 元素

leehomeok avatar Nov 23 '22 03:11 leehomeok