cec-nuxt-lib 0.4.4 → 0.4.6
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/dist/module.json
CHANGED
|
@@ -65,17 +65,19 @@ const accordion = (data) => {
|
|
|
65
65
|
`;
|
|
66
66
|
data.accordionSection.forEach((e, i) => {
|
|
67
67
|
let accId = `${data.id}_${i}`;
|
|
68
|
+
let article = `${e.content ? e.content : ''}${e.genericList ? genList(e.genericList, accId) : ''}`;
|
|
69
|
+
if (!article.length) {
|
|
70
|
+
article = '<p>Nothing to display at present</p>';
|
|
71
|
+
}
|
|
68
72
|
html += `
|
|
69
73
|
<input class="${data.id}"
|
|
70
74
|
id="${accId}"
|
|
71
75
|
type="checkbox"
|
|
72
76
|
/>
|
|
73
77
|
<label for="${accId}">${e.accLabel}</label>
|
|
74
|
-
<article
|
|
75
|
-
${
|
|
76
|
-
|
|
77
|
-
</article>
|
|
78
|
-
|
|
78
|
+
<article>
|
|
79
|
+
${article}
|
|
80
|
+
</article>
|
|
79
81
|
`;
|
|
80
82
|
});
|
|
81
83
|
html += '</section>';
|
|
@@ -614,7 +616,7 @@ const genericList = (props: any) => {
|
|
|
614
616
|
const genList = (item, id) => {
|
|
615
617
|
let heading = item.title ? `<h2 class="fs-4 mt-3">${item.title}</h2>` : '';
|
|
616
618
|
|
|
617
|
-
return listItems.value[id]
|
|
619
|
+
return listItems.value[id] && listItems.value[id].length
|
|
618
620
|
? `
|
|
619
621
|
${heading}
|
|
620
622
|
<ul>
|
package/package.json
CHANGED