@mpxjs/core 2.9.0-beta.1 → 2.9.0-beta.2
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.0-beta.
|
|
3
|
+
"version": "2.9.0-beta.2",
|
|
4
4
|
"description": "mpx runtime core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miniprogram",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"url": "https://github.com/didi/mpx/issues"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2d61bab77c50eccb7470b9b9bd644e7bd6510467"
|
|
51
51
|
}
|
|
@@ -4,6 +4,19 @@ export default function pageRouteMixin (mixinType) {
|
|
|
4
4
|
return {
|
|
5
5
|
beforeCreate () {
|
|
6
6
|
this.route = this.$options.__mpxPageRoute || ''
|
|
7
|
+
},
|
|
8
|
+
methods: {
|
|
9
|
+
getOpenerEventChannel () {
|
|
10
|
+
const router = global.__mpxRouter
|
|
11
|
+
const eventChannel = router && router.eventChannelMap[this.route]
|
|
12
|
+
return eventChannel || {}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
methods: {
|
|
19
|
+
getOpenerEventChannel () {
|
|
7
20
|
}
|
|
8
21
|
}
|
|
9
22
|
}
|
|
@@ -18,11 +18,6 @@ export default function proxyEventMixin () {
|
|
|
18
18
|
const originValue = valuePath.reduce((acc, cur) => acc[cur], $event.detail)
|
|
19
19
|
const value = filterMethod ? (innerFilter[filterMethod] ? innerFilter[filterMethod](originValue) : typeof this[filterMethod] === 'function' && this[filterMethod]) : originValue
|
|
20
20
|
setByPath(this, expr, value)
|
|
21
|
-
},
|
|
22
|
-
getOpenerEventChannel () {
|
|
23
|
-
const router = this.$root.$options && this.$root.$options.router
|
|
24
|
-
const eventChannel = router && router.__mpxAction && router.__mpxAction.eventChannel
|
|
25
|
-
return eventChannel
|
|
26
21
|
}
|
|
27
22
|
}
|
|
28
23
|
}
|