mali-applet-ui 0.0.59 → 0.0.60

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.
@@ -30,6 +30,12 @@ export default {
30
30
  title: String,
31
31
  className: String
32
32
  },
33
+ inject: {
34
+ currVM: {
35
+ from: 'pageVM',
36
+ default: null
37
+ }
38
+ },
33
39
  data () {
34
40
  return {
35
41
  loading: false,
@@ -72,7 +78,7 @@ export default {
72
78
  this.loading = true
73
79
  if (this.requestMethod) {
74
80
  return Promise.resolve(
75
- this.requestMethod(this.getParams())
81
+ this.requestMethod.call(this.currVM, this.getParams())
76
82
  ).then(res => {
77
83
  let data = []
78
84
  if (XEUtils.isFunction(globalStore.list.resProps.result)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",