mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
docs: fix incorrect content for emit method in event api
This commit is contained in:
parent
f3f7703f98
commit
f6800be0e6
@ -43,12 +43,13 @@ off(event: string, listener: (...args: any[]) => void): void;
|
||||
|
||||
```typescript
|
||||
/**
|
||||
* 取消监听事件
|
||||
* cancel a monitor from a event
|
||||
* 触发事件
|
||||
* emit a message for a event
|
||||
* @param event 事件名称
|
||||
* @param listener 事件回调
|
||||
* @param args 事件参数
|
||||
* @returns
|
||||
*/
|
||||
off(event: string, listener: (...args: any[]) => void): void;
|
||||
emit(event: string, ...args: any[]): void;
|
||||
```
|
||||
|
||||
## 使用示例
|
||||
|
||||
@ -21,7 +21,7 @@ export interface IPublicApiEvent {
|
||||
|
||||
/**
|
||||
* 触发事件
|
||||
* emit a message fot a event
|
||||
* emit a message for a event
|
||||
* @param event 事件名称
|
||||
* @param args 事件参数
|
||||
* @returns
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user