alibaba / alibaba/lowcode-engine

FunctionSetter使用问题 bug

Open
#1,106 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

1、官方demo网站, antd组件库, 拖入固钉组件
![image](https://user-images.githubusercontent.com/41459781/194694275-c58f26e9-9808-4d62-98ff-b12fe0c33880.png)

2、点击setter中的绑定函数
![image](https://user-images.githubusercontent.com/41459781/194694301-31af562a-3f17-4760-85c8-fb76cad4d16d.png)

3、选择新建,点击ok新建绑定事件
![image](https://user-images.githubusercontent.com/41459781/194694391-75323e47-c8eb-417a-996e-96d98b43bae3.png)
![image](https://user-images.githubusercontent.com/41459781/194694410-02c4af0b-adb2-44a5-b006-7e4f0ad29ec3.png)

4、页面报错, 新建事件后组建会刷新, 但实际上源码部分还没更新,仅仅是通过编辑器插入了一个代码模板 ,此时组件内部调用该函数就会报错, 类似的其他组件也是这样的问题。
![image](https://user-images.githubusercontent.com/41459781/194694478-2d7e7e22-83cd-427e-af23-3dfd7062a77a.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the steps in the official demo with the antd component and its FunctionSetter: create a new bound function and click OK. Trace the refresh that follows event creation and compare it with the editor-inserted code template. Done means the component no longer errors when invoking the newly created function and the source is updated before the refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.