@mpxjs/core 2.9.23 → 2.9.26
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 +2 -2
- package/src/core/proxy.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/core",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.26",
|
|
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": "0abcc7e543b5c4c4af14b2154b78b15c1f571160"
|
|
51
51
|
}
|
package/src/core/proxy.js
CHANGED
|
@@ -97,6 +97,8 @@ function preProcessRenderData (renderData) {
|
|
|
97
97
|
export default class MpxProxy {
|
|
98
98
|
constructor (options, target, reCreated) {
|
|
99
99
|
this.target = target
|
|
100
|
+
// 兼容 getCurrentInstance.proxy
|
|
101
|
+
this.proxy = target
|
|
100
102
|
this.reCreated = reCreated
|
|
101
103
|
this.uid = uid++
|
|
102
104
|
this.name = options.name || ''
|
|
@@ -622,7 +624,7 @@ export default class MpxProxy {
|
|
|
622
624
|
export let currentInstance = null
|
|
623
625
|
|
|
624
626
|
export const getCurrentInstance = () => {
|
|
625
|
-
return currentInstance
|
|
627
|
+
return currentInstance
|
|
626
628
|
}
|
|
627
629
|
|
|
628
630
|
export const setCurrentInstance = (instance) => {
|