@asd20/ui 3.2.1032 → 3.2.1033
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
|
@@ -28,14 +28,18 @@
|
|
|
28
28
|
class="long-description"
|
|
29
29
|
v-html="longDescription"
|
|
30
30
|
/>
|
|
31
|
-
|
|
31
|
+
<div v-if="bodyContent" class="asd20-messaging__body-content">
|
|
32
32
|
<component :is="dynamicComponent"></component>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<!-- use this in place of the dynamicComponent above for simpler/safer
|
|
36
|
+
body content rendering; it does prevent usage of Vue components like
|
|
37
|
+
nuxt-link during build -->
|
|
38
|
+
<!-- <div
|
|
35
39
|
v-if="bodyContent"
|
|
36
40
|
class="asd20-messaging__body-content"
|
|
37
41
|
v-html="bodyContent"
|
|
38
|
-
/>
|
|
42
|
+
/> -->
|
|
39
43
|
|
|
40
44
|
<div
|
|
41
45
|
v-if="callsToAction && callsToAction.length > 0"
|
|
@@ -87,11 +91,11 @@ export default {
|
|
|
87
91
|
'asd20-messaging--padded': this.padded,
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
dynamicComponent() {
|
|
95
|
+
return {
|
|
96
|
+
template: `<div>${this.bodyContent}</div>`,
|
|
97
|
+
}
|
|
98
|
+
},
|
|
95
99
|
messageImage() {
|
|
96
100
|
// Get full image
|
|
97
101
|
const messageImages = Array.isArray(this.images) ? this.images : []
|