glib-web 3.0.4 → 3.0.5

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.
@@ -7,7 +7,6 @@ export default class {
7
7
  const target = GLib.component.findById(spec.targetId);
8
8
  if (target) {
9
9
  Object.assign(target.spec, spec.views[0]);
10
- target.$recursiveUpdate();
11
10
  }
12
11
  }
13
12
  }
@@ -1,24 +1,9 @@
1
1
  <template>
2
- <component
3
- :is="componentName"
4
- :class="cssClasses"
5
- :style="$styles()"
6
- :href="$href()"
7
- @click="$onClick()"
8
- >
9
- <v-row no-gutters class="full-height">
10
- <template v-for="(item, index) in spec.childViews">
11
- <glib-component
12
- v-if="isColumn(item)"
13
- :key="viewKey(item, index)"
14
- :spec="item"
15
- />
16
- <div
17
- v-else
18
- :key="'else-' + viewKey(item, index)"
19
- class="full-width"
20
- :style="innerStyles"
21
- >
2
+ <component :is="componentName" :class="cssClasses" :style="$styles()" :href="$href()" @click="$onClick()">
3
+ <v-row no-gutters>
4
+ <template v-for="(item, index) in spec.childViews" :key="viewKey(item, index)">
5
+ <glib-component v-if="isColumn(item)" :spec="item" />
6
+ <div v-else class="full-width" :style="innerStyles">
22
7
  <glib-component :spec="item" />
23
8
  </div>
24
9
  </template>
@@ -66,7 +51,8 @@ export default {
66
51
  },
67
52
  viewKey(item, index) {
68
53
  // Use view name for key to avoid component reuse issue
69
- return `view${index}_${item.view}`;
54
+ // return `view${index}_${item.view}`
55
+ return item
70
56
  },
71
57
  $registryEnabled() {
72
58
  return false;
@@ -166,9 +166,9 @@ export default {
166
166
  this.$ready();
167
167
  },
168
168
  async $recursiveUpdate(stack) {
169
- const children = this.$children;
169
+ // const children = this.$children;
170
170
  if (this.spec) {
171
- this.$update();
171
+ // this.$update();
172
172
  // this.$forceUpdate();
173
173
 
174
174
  // Execute on next tick to ensure that the child has received the updated spec.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,4 +44,4 @@
44
44
  "prettier": "^1.18.2",
45
45
  "typescript": "^4.9.5"
46
46
  }
47
- }
47
+ }