@alipay/ams-checkout 0.0.1733711101-dev.10 → 0.0.1733711101-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ export declare class EventCenter implements Service {
|
|
61
61
|
* @param name - The name of the event to emit.
|
62
62
|
* @param data - The event data to pass to the event listeners.
|
63
63
|
*/
|
64
|
-
emit(name: string, data: any,
|
64
|
+
emit(name: string, data: any, eventPayload?: EventPayload): void;
|
65
65
|
/**
|
66
66
|
* Registers a callback for an event and immediately dispatches the event to the app.
|
67
67
|
* @param payloadContext - The context containing event information and callback ID.
|
@@ -196,11 +196,11 @@ export var EventCenter = /*#__PURE__*/function () {
|
|
196
196
|
*/
|
197
197
|
}, {
|
198
198
|
key: "emit",
|
199
|
-
value: function emit(name, data,
|
199
|
+
value: function emit(name, data, eventPayload) {
|
200
200
|
if (this.events.has(name)) {
|
201
201
|
var eventList = this.events.get(name);
|
202
202
|
eventList.forEach(function (item) {
|
203
|
-
item.func(data,
|
203
|
+
item.func(data, eventPayload);
|
204
204
|
});
|
205
205
|
}
|
206
206
|
}
|