@hostlink/nuxt-light 0.0.68 → 0.0.69
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
|
@@ -66,8 +66,10 @@ const props = defineProps({
|
|
|
66
66
|
}
|
|
67
67
|
})
|
|
68
68
|
|
|
69
|
+
const pagination = ref(props.pagination);
|
|
70
|
+
|
|
69
71
|
if (props.rowsPerPageOptions[0] == 0) {
|
|
70
|
-
|
|
72
|
+
pagination.value.rowsPerPage = 0;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
//apply all aligns to the columns
|
|
@@ -124,8 +126,8 @@ if (props.actions.length > 0) {
|
|
|
124
126
|
|
|
125
127
|
if (props.sortBy) {
|
|
126
128
|
let [sortBy, descending] = props.sortBy.split(":");
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
pagination.value.sortBy = sortBy;
|
|
130
|
+
pagination.value.descending = descending == "desc";
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
const hasSearch = computed(() => {
|
|
@@ -279,11 +281,12 @@ const onRequest = async (p: any) => {
|
|
|
279
281
|
modelName.value = allData.meta.name;
|
|
280
282
|
|
|
281
283
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
//pagination.value.rowsPerPage = p.pagination.rowsPerPage;
|
|
285
|
+
pagination.value.page = p.pagination.page;
|
|
286
|
+
pagination.value.sortBy = p.pagination.sortBy;
|
|
287
|
+
pagination.value.descending = p.pagination.descending;
|
|
288
|
+
pagination.value.rowsNumber = allData.meta.total;
|
|
289
|
+
|
|
287
290
|
loading.value = false;
|
|
288
291
|
validateData()
|
|
289
292
|
|
|
@@ -395,7 +398,7 @@ const attrs = {
|
|
|
395
398
|
|
|
396
399
|
<q-table v-bind="attrs" :row-key="rowKey" :loading="loading" :rows="rows" ref="table" @request="onRequest"
|
|
397
400
|
:rows-per-page-label="$t(props.rowsPerPageLabel)" :columns="renderColumns"
|
|
398
|
-
:rows-per-page-options="rowsPerPageOptions" :selection="selection" :pagination="pagination">
|
|
401
|
+
:rows-per-page-options="rowsPerPageOptions" :selection="selection" v-model:pagination="pagination">
|
|
399
402
|
|
|
400
403
|
|
|
401
404
|
<template v-for="s in ss" v-slot:[s]="props">
|