cec-nuxt-lib 0.10.13 → 0.10.15
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
|
@@ -8,6 +8,9 @@ const goToPage = (n) => {
|
|
|
8
8
|
pageIndex.value = n;
|
|
9
9
|
scrollTo.value.scrollIntoView();
|
|
10
10
|
};
|
|
11
|
+
const results = pages.value.reduce((acc, p) => {
|
|
12
|
+
return acc + p.length;
|
|
13
|
+
}, 0);
|
|
11
14
|
</script>
|
|
12
15
|
|
|
13
16
|
<template>
|
|
@@ -70,13 +73,8 @@ const goToPage = (n) => {
|
|
|
70
73
|
</ol>
|
|
71
74
|
</nav>
|
|
72
75
|
<p>
|
|
73
|
-
<span v-if="page.showResultsNum"
|
|
74
|
-
>Total results:
|
|
75
|
-
{{
|
|
76
|
-
pages.reduce((acc, p) => {
|
|
77
|
-
return acc + p.length;
|
|
78
|
-
}, 0)
|
|
79
|
-
}}. </span
|
|
76
|
+
<span v-if="page.showResultsNum && results"
|
|
77
|
+
>Total results: {{ results }}. </span
|
|
80
78
|
>
|
|
81
79
|
<span v-if="pages.length > 1"
|
|
82
80
|
>Viewing page {{ pageIndex + 1 }} of {{ pages.length }}.</span
|
package/package.json
CHANGED