@mozaic-ds/vue 0.42.0-beta.0 → 0.42.0-beta.2
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/mozaic-vue.adeo.umd.js +11 -11
- package/dist/mozaic-vue.adeo.umd.js.map +1 -1
- package/dist/mozaic-vue.common.js +11 -11
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.umd.js +11 -11
- package/dist/mozaic-vue.umd.js.map +1 -1
- package/dist/mozaic-vue.umd.min.js +1 -1
- package/dist/mozaic-vue.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/datatable/MDataTable.vue +3 -1
package/package.json
CHANGED
|
@@ -203,6 +203,7 @@ function autoGenerateHeaders(data, headers) {
|
|
|
203
203
|
/** Build options to manage request. */
|
|
204
204
|
function buildOptions(
|
|
205
205
|
pagingEnabled,
|
|
206
|
+
pagingTotalPage,
|
|
206
207
|
pagerValue,
|
|
207
208
|
pagingIndex,
|
|
208
209
|
pagingSize,
|
|
@@ -220,7 +221,7 @@ function buildOptions(
|
|
|
220
221
|
|
|
221
222
|
return {
|
|
222
223
|
sort: columnSorters,
|
|
223
|
-
skip: pagingEnabled ? pagerValue * (index - 1) : null,
|
|
224
|
+
skip: (pagingEnabled || pagingTotalPage) ? pagerValue * (index - 1) : null,
|
|
224
225
|
take: pagingEnabled ? pagerValue : null,
|
|
225
226
|
};
|
|
226
227
|
}
|
|
@@ -448,6 +449,7 @@ export default {
|
|
|
448
449
|
getTotalStringCurrentCount() {
|
|
449
450
|
const { skip, take } = buildOptions(
|
|
450
451
|
this.pagingOptions.enabled,
|
|
452
|
+
this.pagingOptions.totalPage,
|
|
451
453
|
this.getPageValue,
|
|
452
454
|
this.getPagingIndex,
|
|
453
455
|
this.getPagingSize,
|