mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(core): 保证传参行为一致
This commit is contained in:
parent
a96d547c20
commit
b0419cdbaf
@ -206,7 +206,7 @@ class App extends EventEmitter {
|
||||
if (typeof node.data === 'undefined') {
|
||||
return super.emit(name, node, ...args);
|
||||
}
|
||||
return super.emit(`${String(name)}_${node.data.id}`, ...args);
|
||||
return super.emit(`${String(name)}_${node.data.id}`, node, ...args);
|
||||
}
|
||||
|
||||
public eventHandler(eventConfig: EventItemConfig, fromCpt: any, args: any[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user