three-trees-ui 1.0.81 → 1.0.82

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": "three-trees-ui",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "publicPath": "/ui",
5
5
  "author": "hotent",
6
6
  "private": false,
@@ -140,7 +140,7 @@
140
140
  })
141
141
  },
142
142
  init() {
143
- this.currentComponent = this.scopeName
143
+ this.currentComponent = 'runtimeTemplate_' + this.scopeName
144
144
  this.loadStatus = 1
145
145
  Vue.component(this.currentComponent, {
146
146
  componentName: this.currentComponent,
@@ -60,7 +60,7 @@ export default {
60
60
  let parent = this.$parent || this.$root
61
61
  let name = parent.$options.componentName
62
62
 
63
- while (parent && (!name || name !== 'HtRuntimeTemplate')) {
63
+ while (parent && (!name || !name.includes('runtimeTemplate_'))) {
64
64
  parent = parent.$parent
65
65
 
66
66
  if (parent) {
package/src/utils.js CHANGED
@@ -449,7 +449,10 @@ var utils = {
449
449
  if (!instance) {
450
450
  throw 'VueComponent实例为空.'
451
451
  }
452
- if (instance.$options.componentName == 'HtRuntimeTemplate') {
452
+ if (
453
+ instance.$options.componentName &&
454
+ instance.$options.componentName.includes('runtimeTemplate_')
455
+ ) {
453
456
  return instance
454
457
  } else if (instance.$parent) {
455
458
  return utils.getRuntimeTemplateOnlineForm(instance.$parent)