@mozaic-ds/vue 0.42.0-beta.2 → 0.42.0-beta.4
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 +12 -11
- package/dist/mozaic-vue.adeo.umd.js.map +1 -1
- package/dist/mozaic-vue.common.js +12 -11
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.umd.js +12 -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 +4 -2
package/package.json
CHANGED
|
@@ -207,9 +207,9 @@ function buildOptions(
|
|
|
207
207
|
pagerValue,
|
|
208
208
|
pagingIndex,
|
|
209
209
|
pagingSize,
|
|
210
|
-
|
|
210
|
+
sortedColumns
|
|
211
211
|
) {
|
|
212
|
-
const columnSorters =
|
|
212
|
+
const columnSorters = sortedColumns.reduce(
|
|
213
213
|
(acc, header) => ({
|
|
214
214
|
...acc,
|
|
215
215
|
[header.sortFieldExpr ?? header.dataFieldExpr]: header.sortOrder,
|
|
@@ -237,6 +237,7 @@ const Pager = {
|
|
|
237
237
|
|
|
238
238
|
const Paging = {
|
|
239
239
|
defaultOptions: {
|
|
240
|
+
totalPage: null,
|
|
240
241
|
enabled: false,
|
|
241
242
|
text: 'sur',
|
|
242
243
|
index: 1,
|
|
@@ -577,6 +578,7 @@ export default {
|
|
|
577
578
|
try {
|
|
578
579
|
const options = buildOptions(
|
|
579
580
|
this.pagingOptions.enabled,
|
|
581
|
+
this.pagingOptions.totalPage,
|
|
580
582
|
this.getPageValue,
|
|
581
583
|
this.getPagingIndex,
|
|
582
584
|
this.getPagingSize,
|