@mpxjs/core 2.8.23-alpha.1 → 2.8.23-alpha.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.8.23-alpha.
|
|
3
|
+
"version": "2.8.23-alpha.2",
|
|
4
4
|
"description": "mpx runtime core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miniprogram",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"url": "https://github.com/didi/mpx/issues"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "556f754c8b43cb825a8d5d5040b1cdf7a6fdd613"
|
|
53
53
|
}
|
package/src/index.js
CHANGED
|
@@ -118,7 +118,7 @@ function factory () {
|
|
|
118
118
|
Object.assign(Mpx, APIs)
|
|
119
119
|
Object.assign(Mpx.prototype, InstanceAPIs)
|
|
120
120
|
// 输出web时在mpx上挂载Vue对象
|
|
121
|
-
if (__mpx_mode__ === 'web') {
|
|
121
|
+
if (__mpx_mode__ === 'web' || __mpx_mode__ === 'tenon') {
|
|
122
122
|
Mpx.__vue = Vue
|
|
123
123
|
}
|
|
124
124
|
return Mpx
|
|
@@ -2,6 +2,7 @@ import builtInKeysMap from '../builtInKeysMap'
|
|
|
2
2
|
import mergeOptions from '../../../core/mergeOptions'
|
|
3
3
|
import MPXProxy from '../../../core/proxy'
|
|
4
4
|
import { diffAndCloneA } from '@mpxjs/utils'
|
|
5
|
+
import { UPDATED } from '../../../core/innerLifecycle'
|
|
5
6
|
|
|
6
7
|
function filterOptions (options) {
|
|
7
8
|
const newOptions = {}
|
|
@@ -43,7 +44,7 @@ export function getDefaultOptions (type, { rawOptions = {}, currentInject }) {
|
|
|
43
44
|
this.__mpxProxy && this.__mpxProxy.mounted(Hummer.pageInfo && Hummer.pageInfo.params && [Hummer.pageInfo.params])
|
|
44
45
|
},
|
|
45
46
|
updated () {
|
|
46
|
-
this.__mpxProxy && this.__mpxProxy.
|
|
47
|
+
this.__mpxProxy && this.__mpxProxy.callHook(UPDATED)
|
|
47
48
|
},
|
|
48
49
|
[hookNames[2]] () {
|
|
49
50
|
this.__mpxProxy && this.__mpxProxy.unmounted()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default () => () => {} // mock plugin in other mode
|