@mpxjs/core 2.9.43 → 2.9.46

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.43",
3
+ "version": "2.9.46",
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": "92a347518d15400f87c380bc7248b8b6254631cf"
84
+ "gitHead": "310d4b0986313835bb30f027983c2bc1b64814c6"
85
85
  }
@@ -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 => {