mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-02 15:56:36 +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') {
|
if (typeof node.data === 'undefined') {
|
||||||
return super.emit(name, node, ...args);
|
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[]) {
|
public eventHandler(eventConfig: EventItemConfig, fromCpt: any, args: any[]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user