vue2-client 1.12.68 → 1.12.69

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": "vue2-client",
3
- "version": "1.12.68",
3
+ "version": "1.12.69",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -114,6 +114,11 @@ export default {
114
114
  beforeDestroy () {
115
115
  window.removeEventListener('setItem', this.handleStorageChange)
116
116
  },
117
+ provide () {
118
+ return {
119
+ getComponentByName: this.getComponentByName
120
+ }
121
+ },
117
122
  methods: {
118
123
  handleStorageChange (e) {
119
124
  console.log('监听到sessionStorage的变化:', e)
@@ -199,6 +199,11 @@ export default {
199
199
  }
200
200
  },
201
201
  inject: ['openDialog', 'emitEvent', 'registerComponent', 'setColSpanByName', 'setGlobalData', 'getGlobalData', 'getComponentByName', 'runLogic', 'getMixinData', 'getSelectedId', 'isInAModal', 'getConfigByName', 'getSelectedData', 'getOutEnv', 'currUser', 'isWidget'],
202
+ provide () {
203
+ return {
204
+ getComponentByName: this.getComponentByName
205
+ }
206
+ },
202
207
  methods: {
203
208
  getWindow,
204
209
  isMicroAppEnv,