@mpxjs/core 2.9.43 → 2.9.47
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/core",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.47",
|
|
4
4
|
"description": "mpx runtime core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miniprogram",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"url": "https://github.com/didi/mpx/issues"
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "3fe5773884ffeb99732414fe5d2d64b7f76d4c78"
|
|
85
85
|
}
|
package/src/core/proxy.js
CHANGED
|
@@ -202,8 +202,8 @@ export default class MpxProxy {
|
|
|
202
202
|
this.callHook(BEFOREUNMOUNT)
|
|
203
203
|
this.scope?.stop()
|
|
204
204
|
if (this.update) this.update.active = false
|
|
205
|
-
this.state = UNMOUNTED
|
|
206
205
|
this.callHook(UNMOUNTED)
|
|
206
|
+
this.state = UNMOUNTED
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
isUnmounted () {
|
|
@@ -18,6 +18,8 @@ export default function proxyEventMixin () {
|
|
|
18
18
|
}
|
|
19
19
|
const location = this.__mpxProxy.options.mpxFileResource
|
|
20
20
|
const type = $event.type
|
|
21
|
+
// thanos 平台特殊事件标识
|
|
22
|
+
const emitMode = $event.detail && $event.detail.mpxEmit
|
|
21
23
|
if (!type) {
|
|
22
24
|
error('Event object must have [type] property!', location)
|
|
23
25
|
return
|
|
@@ -44,6 +46,10 @@ export default function proxyEventMixin () {
|
|
|
44
46
|
let returnedValue
|
|
45
47
|
curEventConfig.forEach((item) => {
|
|
46
48
|
const callbackName = item[0]
|
|
49
|
+
if (emitMode) {
|
|
50
|
+
// thanos 平台特殊事件标识处理
|
|
51
|
+
$event = $event.detail.data
|
|
52
|
+
}
|
|
47
53
|
if (callbackName) {
|
|
48
54
|
const params = item.length > 1
|
|
49
55
|
? item.slice(1).map(item => {
|