@tmsfe/tms-core 0.0.51 → 0.0.52
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.
package/package.json
CHANGED
|
@@ -19,14 +19,11 @@ function proxyBindEvent(componentName: string, methods: any, methodName: string)
|
|
|
19
19
|
methods[methodName] = function (...args: any[]): any {
|
|
20
20
|
// 执行原函数之后再发埋点
|
|
21
21
|
return helper.executeFunc(this, original, args, () => {
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
helper.setLastBindEvent({ eventName, methodName, data, extra });
|
|
28
|
-
helper.reportData(eventName, methodName, data, extra);
|
|
29
|
-
}
|
|
22
|
+
const extra = clone.getEventExtra(args[0]) ; // 把触发事件附加数据也带上
|
|
23
|
+
const data = clone.deepClone(this.data);
|
|
24
|
+
const eventName = `Component_${componentName}`;
|
|
25
|
+
helper.setLastBindEvent({ eventName, methodName, data, extra });
|
|
26
|
+
helper.reportData(eventName, methodName, data, extra);
|
|
30
27
|
});
|
|
31
28
|
};
|
|
32
29
|
}
|