alibaba / alibaba/lowcode-engine

插件注册时IWidgetBaseConfig.content 对应的class中创建event this的问题

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

Description

**插件注册时IWidgetBaseConfig.content 对应的class中创建event this的问题**
注册插件时content中对应的class中申明了一个Event
![image](https://user-images.githubusercontent.com/59530412/204435882-67744deb-ac93-439c-818e-255a63be30c6.png)
_注册_
![image](https://user-images.githubusercontent.com/59530412/204436040-88f2e95a-f8d5-4aeb-ba58-5d2077eb86f7.png)
_这里的 this 不是当前class_

请问我要怎么获取当前Class呢?

追问: 没有办法 可以通过一个插件去刷新另外一个插件

烦请大佬心情好的时候帮忙解答一下

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the plugin registration scenario shown in the issue, including an Event declared in the class supplied through IWidgetBaseConfig.content. Trace how registration invokes that class and how `this` is bound, then investigate the follow-up question about refreshing another plugin. Done means the supported behavior and a reproducible resolution are documented or implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.