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.
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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.
|